incubator
incubator copied to clipboard
MongoCollection::find now requires fields param to be associative array
Old code using the fields param as an array now fails with only the _id returned.
$blah = Blah::find([
'fields' => ['a', b', c'],
'conditions' => ['a' => 1]
]);
Field parms now works when expressed with the field as the key and 1 as the value:
$blah = Blah::find([
'fields' => [
'a' => 1,
'b' => 1,
'c' => 1
],
'conditions' => ['a' => 1]
]);
Not sure why this changed. It does match Mongo shell syntax properly.
@sergeysviridenko Could you please take a look
Try to use phalcon/[email protected]