em ->getClassMetadata(AccompanyingPeriod::class); $query = $this->basicFetchQuery($context, $args); $query->setKey('accompanying_period_opening') ->setDate($metadata->getColumnName('openingDate')); return $query; } public function getEntityTemplate($entity, $context, array $args) { return $this->getBasicEntityTemplate( 'ChillPersonBundle:Timeline:opening_period.html.twig', $entity, $context, $args ); } public function supportsType($type) { return 'accompanying_period_opening' === $type; } }