/** * Get existing new bnode or create new bnode for given bnode. * * @param $bNode */ public function getNewBnode($bNode) { if (in_array($bNode, $this->bnodeMap)) { return $bNode; } if (!isset($this->bnodeMap[$bNode])) { $this->bnodeMap[$bNode] = $this->_rm->getUnitOfWork()->nextBNode(); } return $this->bnodeMap[$bNode]; }
/** * @param $property * @param $value */ private function snapshot() { if (!$this->isReady) { return; } if (!empty($this->_rm) && !$this->isDirty) { $this->_rm->getUnitOfWork()->snapshot($this); $this->isDirty = true; $this->_rm->getUnitOfWork()->setDirty($this); } }