コード例 #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
ファイル: DataSourceBuilder.php プロジェクト: php-lug/lug
 /**
  * {@inheritdoc}
  */
 public function getProperty($field)
 {
     return $this->repository->getProperty($field, $this->queryBuilder);
 }