WellCommerce\Bundle\DoctrineBundle\Manager\ManagerInterface::getRepository PHP Method

getRepository() public method

Returns the repository
public getRepository ( ) : WellCommerce\Bundle\DoctrineBundle\Repository\RepositoryInterface
return WellCommerce\Bundle\DoctrineBundle\Repository\RepositoryInterface
    public function getRepository() : RepositoryInterface;

Usage Example

 private function findLayoutBox($identifier) : LayoutBoxInterface
 {
     $layoutBox = $this->manager->getRepository()->findOneBy(['identifier' => $identifier]);
     if (!$layoutBox instanceof LayoutBoxInterface) {
         throw new LayoutBoxNotFoundException($identifier);
     }
     return $layoutBox;
 }
All Usage Examples Of WellCommerce\Bundle\DoctrineBundle\Manager\ManagerInterface::getRepository