예제 #1
0
 /**
  * {@inheritdoc}
  */
 public function getProperty($property, $root = null)
 {
     if ($this->cache === null) {
         $translationMetadata = $this->getDocumentManager()->getClassMetadata($this->getClassMetadata()->getAssociationTargetClass($this->getTranslationAlias()));
         $this->cache = array_diff($this->getProperties($translationMetadata), $this->getProperties($this->getClassMetadata()));
     }
     if (in_array($this->getRootProperty($property), $this->cache, true)) {
         $root = $this->getTranslationAlias();
     }
     return parent::getProperty($property, $root);
 }
예제 #2
0
 /**
  * {@inheritdoc}
  */
 public function getProperty($field)
 {
     return $this->repository->getProperty($field, $this->queryBuilder);
 }