src/Orm.php
private function createRepository($entityClass)
    {
        $repository = new EntityRepository();
        $repository->setAdapter(
            $this->adapters->get($this->getAdapterAlias($entityClass))
        )
            ->setEntityMapper($this->getMapperFor($entityClass))
            ->setEntityDescriptor(
                EntityDescriptorRegistry::getInstance()
                    ->getDescriptorFor($entityClass)
            );
        $this->repositories->set($entityClass, $repository);
        return $repository;
    }
private function createRepository($entityClass)
    {
        $repository = new EntityRepository();
        $repository->setAdapter(
            $this->adapters->get($this->getAdapterAlias($entityClass))
        )
            ->setEntityMapper($this->getMapperFor($entityClass))
            ->setEntityDescriptor(
                EntityDescriptorRegistry::getInstance()
                    ->getDescriptorFor($entityClass)
            );
        $this->repositories->set($entityClass, $repository);
        return $repository;
    }
private function createRepository ( $ entityClass ) { $ repository = new EntityRepository ( ) ; $ repository -> setAdapter ( $ this -> adapters -> get ( $ this -> getAdapterAlias ( $ entityClass ) ) ) -> setEntityMapper ( $ this -> getMapperFor ( $ entityClass ) ) -> setEntityDescriptor ( EntityDescriptorRegistry :: getInstance ( ) -> getDescriptorFor ( $ entityClass ) ) ; $ this -> repositories -> set ( $ entityClass , $ repository ) ; return $ repository ; }
Creates a repository for provided entity class name

@param string $entityClass
@return EntityRepository
Creates a repository for provided entity class name