Daniel
2011-08-16 08:15:47 UTC
When I have the annotations below in of my entities I get the error
below. If I remove the @ORM\Id part the error goes away. I did not
create this database and I dont even think the date field should be an
Id. This entity was generated by the Symfony command line interface. I
want to understand why this error is occurring.
/**
* @var datetime $date
*
* @ORM\Column(name="date", type="datetime", nullable=false)
* @ORM\Id
* @ORM\GeneratedValue(strategy="NONE")
*/
An exception has been thrown during the rendering of a template
("Catchable Fatal Error: Object of class DateTime could not be
converted to string in ....
--
If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com
You received this message because you are subscribed to the Google
Groups "Symfony2" group.
To post to this group, send email to symfony2-/***@public.gmane.org
To unsubscribe from this group, send email to
symfony2+unsubscribe-/***@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/symfony2?hl=en
below. If I remove the @ORM\Id part the error goes away. I did not
create this database and I dont even think the date field should be an
Id. This entity was generated by the Symfony command line interface. I
want to understand why this error is occurring.
/**
* @var datetime $date
*
* @ORM\Column(name="date", type="datetime", nullable=false)
* @ORM\Id
* @ORM\GeneratedValue(strategy="NONE")
*/
An exception has been thrown during the rendering of a template
("Catchable Fatal Error: Object of class DateTime could not be
converted to string in ....
--
If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com
You received this message because you are subscribed to the Google
Groups "Symfony2" group.
To post to this group, send email to symfony2-/***@public.gmane.org
To unsubscribe from this group, send email to
symfony2+unsubscribe-/***@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/symfony2?hl=en