コード例 #1
0
 public function executeRemoves()
 {
     foreach ($this->unitOfWork->getObjectsToRemove() as $object) {
         $this->unitOfWork->getObjectPersister($object)->removeObject($object);
         $this->objectIdentityMap->detach($object);
         $this->eventDispatcher->dispatchLifecycleEvent(Events::postRemove, $object);
     }
 }
コード例 #2
0
 /**
  * @param array $data
  *
  * @return object
  */
 public function getOrCreateObject($className, array $data)
 {
     return $this->unitOfWork->getOrCreateObject($className, $data);
 }