Bonjour,

J'ai un soucis d'affichage à cause d'un datetime.

An exception has been thrown during the rendering of a template ("Warning: strtr() expects parameter 1 to be string, object given in C:/....

Comment je dois afficher un datetime dans une liste déroulante.

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
->add('heure',
          'entity'
          array('class' => '....',
                  'property' => 'heure',
                 )
         ),
Je dois utiliser la méthode toString ??

Merci