private function getPerson($name) { return $this->em->getRepository(Person::class)->findOneBy('name', $name); }