public function setId(MongoId $id) { $this->_id = $id; $this->setConfigAttribute('new', false); $this->setCriteria($this->getPathToProperty('_id'), $id); }