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