I am having a issue with a date format issue. I am using mysql, doctrine2, and php 5.3.
The issue is when I query the database getRepository('Entity\\Srm').findBy($id)
I end up with a negative date value of: -0001-11-30 00:00:00
.
The value that is currently store in the database is 0000-00-00
. The datatype of the field in mysql is date
.
The doctrine entity has the variable identified as a date
type.
I have done tons of searching with and no good leads.
Any Ideas?
Thanks