If I want to select documents that meet two specific criteria, how do I format the query? Right now I currently have this:
$params = array('$all' => array(
array('parent.id'=>'1'),
array('owner_id'=>'8')
));
$data = $collection->find($params);
This query brings me back no results…any ideas??
Ouh.. Use it: