public function __construct(ManagerRegistry $registry) { $this->registry = $registry; parent::__construct($registry); }