getDocumentName() public method

public getDocumentName ( ) : string
return string
 /**
  * @return \Cubiche\Infrastructure\Repository\Doctrine\ODM\MongoDB\DocumentDataSource
  */
 protected function documentDataSource()
 {
     if ($this->documentDataSource === null) {
         $this->documentDataSource = $this->documentDataSourceFactory->create($this->repository->getDocumentName());
     }
     return $this->documentDataSource;
 }
 /**
  * @param string $field
  * @return string
  */
 private function getField($field)
 {
     if ($this->fields === null) {
         $dm = $this->repository->getDocumentManager();
         /** @todo Investigate if produces performance problems */
         $entityMeta = $dm->getClassMetadata($this->repository->getDocumentName());
         foreach ($entityMeta->fieldMappings as $fieldName => $fieldMapping) {
             $this->fields[$fieldMapping['name']] = $fieldName;
         }
     }
     return isset($this->fields[$field]) ? $this->fields[$field] : $field;
 }
Beispiel #3
0
 /**
  * get classname of entity
  *
  * @return string
  */
 public function getEntityClass()
 {
     return $this->repository->getDocumentName();
 }
Beispiel #4
0
 /**
  * @param MongoDBDocumentRepository $repository
  */
 public function __construct(MongoDBDocumentRepository $repository)
 {
     parent::__construct($repository->getDocumentName());
     $this->repository = $repository;
 }
 public function getEntityName()
 {
     return parent::getDocumentName();
 }