Reputation: 342
I am using the MongoDB driver for PHP and I need to find some nested elements. My structure looks like this:
proce : { "type" : "cars" , "grupo" : { "_id" : "4e8478ace4b0dea06288ad63"}}
I need to get to the _id = 4e8478ace4b0dea06288ad63
I tried something like
$db->find( array( 'grupo._id' => "4e8478ace4b0dea06288ad63" ) );
but nothing happens.. thanks for your help
Upvotes: 0
Views: 953