WellCommerce\Bundle\DoctrineBundle\Helper\Doctrine\DoctrineHelperInterface::getAllMetadata PHP Метод

getAllMetadata() публичный Метод

public getAllMetadata ( ) : Doctrine\Common\Persistence\Mapping\ClassMetadata[]
Результат Doctrine\Common\Persistence\Mapping\ClassMetadata[]
    public function getAllMetadata();

Usage Example

Пример #1
0
 protected function getTranslatableRespositories() : Collection
 {
     $collection = new ArrayCollection();
     $metadata = $this->doctrineHelper->getAllMetadata();
     foreach ($metadata as $classMetadata) {
         $reflectionClass = $classMetadata->getReflectionClass();
         if ($reflectionClass->implementsInterface(LocaleAwareInterface::class)) {
             $repository = $this->entityManager->getRepository($reflectionClass->getName());
             $collection->add($repository);
         }
     }
     return $collection;
 }
All Usage Examples Of WellCommerce\Bundle\DoctrineBundle\Helper\Doctrine\DoctrineHelperInterface::getAllMetadata