function ObjectManager::getRepository

Gets the repository for a class.

Parameters

string $className:

Return value

\Doctrine\Common\Persistence\ObjectRepository

File

drupal/core/vendor/doctrine/common/lib/Doctrine/Common/Persistence/ObjectManager.php, line 115

Class

ObjectManager
Contract for a Doctrine persistence layer ObjectManager class to implement.

Namespace

Doctrine\Common\Persistence

Code

function getRepository($className);