$persistentObject * @psalm-return ObjectRepository */ public function getRepository($persistentObject, $persistentManagerName = null); /** * Gets the object manager associated with a given class. * * @param string $class A persistent object class name. * * @return ObjectManager|null */ public function getManagerForClass($class); }