Commit cc29c6ee authored by Julien Fastré's avatar Julien Fastré

minor refactoring

parent 569befbb
......@@ -85,8 +85,7 @@ abstract class AbstractTimelineAccompanyingPeriod implements TimelineProviderInt
'id' => $metadata->getColumnName('id'),
'FROM' => $metadata->getTableName(),
'WHERE' => sprintf('%s = %d',
$this->em
->getClassMetadata('ChillPersonBundle:AccompanyingPeriod')
$metadata
->getAssociationMapping('person')['joinColumns'][0]['name'],
$args['person']->getId())
);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment