コード例 #1
0
 /**
  * {@inheritdoc}
  */
 protected function prepare()
 {
     $listener = $this->getTranslatableListener();
     $this->savedSkipOnLoad = $listener->isSkipOnLoad();
     $listener->setSkipOnLoad(true);
     parent::prepare();
 }
コード例 #2
0
 protected function prepare()
 {
     parent::prepare();
     foreach ($this->_rsm->aliasMap as $dqlAlias => $className) {
         if (isset($this->aliasMetadata[$dqlAlias])) {
             continue;
         }
         $class = $this->_em->getClassMetadata($className);
         if (!($invoke = $this->lifecycleEventsInvoker->getSubscribedSystems($class, Events::postLoadRelations))) {
             continue;
         }
         $this->aliasMetadata[$dqlAlias] = $class;
         $this->aliasInvokers[$dqlAlias] = $invoke;
     }
 }