public function AbstractManagerRegistry::getRepository in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/doctrine/common/lib/Doctrine/Common/Persistence/AbstractManagerRegistry.php \Doctrine\Common\Persistence\AbstractManagerRegistry::getRepository()
Gets the ObjectRepository for an persistent object.
Parameters
string $persistentObject The name of the persistent object.:
string $persistentManagerName The object manager name (null for the default one).:
Return value
\Doctrine\Common\Persistence\ObjectRepository
Overrides ManagerRegistry::getRepository
File
- vendor/
doctrine/ common/ lib/ Doctrine/ Common/ Persistence/ AbstractManagerRegistry.php, line 235
Class
- AbstractManagerRegistry
- Abstract implementation of the ManagerRegistry contract.
Namespace
Doctrine\Common\PersistenceCode
public function getRepository($persistentObjectName, $persistentManagerName = null) {
return $this
->getManager($persistentManagerName)
->getRepository($persistentObjectName);
}