{"comment":{"created_at":"2011-10-10T19:21:13Z","body":"Possibly this is a quirk of mongo? The pull only works for me because I can uniquely identify an embeded document.","updated_at":"2011-10-10T19:21:13Z","url":"https://api.github.com/repos/coen-hyde/Shanty-Mongo/issues/comments/2351134","id":2351134,"user":{"avatar_url":"https://secure.gravatar.com/avatar/0b668da31995d4dfb4b2e3a66b68fb61?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","url":"https://api.github.com/users/tholder","id":41235,"login":"tholder"}},"action":"created","issue":{"number":44,"created_at":"2011-10-10T19:18:37Z","pull_request":{"diff_url":null,"patch_url":null,"html_url":null},"body":"I'm being left with a null behind when I call delete on an embeded document. \r\n\r\nI  converted it to this to get around the problem:\r\n\r\nMy_Document::update(array('_id' => $document->getId()), array('$pull' => array('applications' => array('application.$id' => $this->app->getId()))));","comments":1,"title":"Calling delete on embeded document leaves null behind","updated_at":"2011-10-10T19:21:13Z","url":"https://api.github.com/repos/coen-hyde/Shanty-Mongo/issues/44","id":1867118,"assignee":null,"milestone":null,"closed_at":null,"user":{"avatar_url":"https://secure.gravatar.com/avatar/0b668da31995d4dfb4b2e3a66b68fb61?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","url":"https://api.github.com/users/tholder","id":41235,"login":"tholder"},"html_url":"https://github.com/coen-hyde/Shanty-Mongo/issues/44","labels":[],"state":"open"},"legacy":{"issue_id":1867118,"comment_id":2351134}}