coen-hyde/Shanty-Mongo — Issue #44: Calling delete on embeded document leaves null behind
Author: tholder
Created: 2011-10-10 19:18:37+00:00
State: open

I'm being left with a null behind when I call delete on an embeded document.

I converted it to this to get around the problem:

My_Document::update(array('_id' => $document->getId()), array('$pull' => array('applications' => array('application.$id' => $this->app->getId()))));