Fix error in date in accompanying period timeline

This commit is contained in:
2017-08-19 22:47:03 +02:00
parent 47e194b1ed
commit bd50ca44db
3 changed files with 10 additions and 14 deletions

View File

@@ -83,8 +83,12 @@ abstract class AbstractTimelineAccompanyingPeriod implements TimelineProviderInt
return array(
'id' => $metadata->getColumnName('id'),
'date' => $metadata->getColumnName('openingDate'),
'FROM' => $metadata->getTableName(),
'WHERE' => sprintf('%s = %d',
$this->em
->getClassMetadata('ChillPersonBundle:AccompanyingPeriod')
->getAssociationMapping('person')['joinColumns'][0]['name'],
$args['person']->getId())
);
}