if (null ===
$name) { return $this->registry->
getManagerForClass($class);
} try { $manager =
$this->registry->
getManager($name);
} catch (\InvalidArgumentException
) { return null;
} return $manager->
getMetadataFactory()->
isTransient($class) ? null :
$manager;
} private function find(ObjectManager
$manager, Request
$request, MapEntity
$options, string
$name): false|object|null
{ if ($options->mapping ||
$options->exclude
) { return false;
} $id =
$this->
getIdentifier($request,
$options,
$name);
if (false ===
$id || null ===
$id) { return $id;
}