public function __construct(ManagerRegistry $managerRegistry) { $this->managerRegistry = $managerRegistry; }