How to get MongoDB parent Model tree structure using PHP

From: mhammad2012@xxxxxxxxxxxx
To: mongodb-user <mongodb-user@xxxxxxxxxxxxxxxx>
Date: Thu, 12 May 2016 12:00:40 -0700 (PDT)
Why ads?
$athar = $c_users->findOne($source) -> parent; var_dump($athar); <i>the 
following error occured on above code: Trying to get property of non-object 
in C:\wamp\www\result.php on line 38</i> Actually, i want to find the 
parent of tree in mongodb. In mongodb shell this command 
("db.hammad.findOne({"name":"Bodington"}).parent")work fine, but it's 
alternative for php do not.

-- 
You received this message because you are subscribed to the Google Groups "mongodb-user"
group.

For other MongoDB technical support options, see: https://docs.mongodb.org/manual/support/
--- 
You received this message because you are subscribed to the Google Groups "mongodb-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mongodb-user+unsubscribe@xxxxxxxxxxxxxxxx.
To post to this group, send email to mongodb-user@xxxxxxxxxxxxxxxx.
Visit this group at https://groups.google.com/group/mongodb-user.
To view this discussion on the web visit https://groups.google.com/d/msgid/mongodb-user/178ae287-3093-48cf-a9f8-b3f622d90609%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Why ads?