aerial-framework / core

Aerial Framework core
http://aerial-project.org
Other
7 stars 0 forks source link

Timestamp Default Value #17

Open dannykopping opened 13 years ago

dannykopping commented 13 years ago

When generating YAML for table that has a timestamp field with the default value of _CURRENT_TIMESTAMP ON UPDATE CURRENTTIMESTAMP, the default value should be excluded so as to not cause Doctrine to generate a PHP model with the string _CURRENT_TIMESTAMP ON UPDATE CURRENTTIMESTAMP as its default value. If Doctrine does this, whenever one saves/updates a record, MySQL gets _CURRENT_TIMESTAMP ON UPDATE CURRENTTIMESTAMP as the default value as a string, and shit goes haywire! Well, the field comes out as all zeros... which is pretty damn haywire!