public function __construct(Shanty_Mongo_Document $document) { $this->_document = $document; $this->_properties = $document->getPropertyKeys(); $this->_position = current($this->_properties); reset($this->_properties); }
/** * Remove all operations * * @param Boolean $includingChildren Remove operations from children as wells */ public function purgeOperations($includingChildren = false) { if ($this->hasRequirement(self::DYNAMIC_INDEX, 'AsReference')) { $includingChildren = false; } return parent::purgeOperations($includingChildren); }
/** * @expectedException Shanty_Mongo_Exception */ public function testSetPropertyRequirementsException() { $address = new Shanty_Mongo_Document(); $address->street = '234 '; $this->_bob->addresses[] = $address; $address->export(); }