You are here

public function ObjectManagerDecorator::getRepository in Plug 7

Gets the repository for a class.

Parameters

string $className:

Return value

\Doctrine\Common\Persistence\ObjectRepository

Overrides ObjectManager::getRepository

File

lib/doctrine/common/lib/Doctrine/Common/Persistence/ObjectManagerDecorator.php, line 104

Class

ObjectManagerDecorator
Base class to simplify ObjectManager decorators

Namespace

Doctrine\Common\Persistence

Code

public function getRepository($className) {
  return $this->wrapped
    ->getRepository($className);
}