#1486: CURRENT_TIMESTAMP Defaulting Error
-----------------------------------+----------------------------------------
 Reporter:  gensisns               |       Owner:  jwage
     Type:  defect                 |      Status:  new  
 Priority:  major                  |   Milestone:  1.0.3
Component:  Import/Export          |     Version:  1.0  
 Keywords:                         |    Has_test:  0    
 Mystatus:  Pending Core Response  |   Has_patch:  0    
-----------------------------------+----------------------------------------
 When running generateModelsFromDb for a MySql database, timestamp columns
 that have a default of CURRENT_TIMESTAMP have "'default' =>
 'CURRENT_TIMESTAMP'" added to the hasColumn options array. When a record
 is saved to the table though, the value CURRENT_TIMESTAMP is sent in the
 insert statement causing the value of '0000-00-00 00:00:00' to be saved.

 Code should be added to ignore the CURRENT_TIMESTAMP default and not add
 it to the hasColumn options array when running generatteModelsFromDb.
 Without this default the timestamp column works without as issue.

-- 
Ticket URL: <http://trac.doctrine-project.org/ticket/1486>
Doctrine <http://www.phpdoctrine.org>
PHP Doctrine Object Relational Mapper
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"doctrine-svn" group.
 To post to this group, send email to [email protected]
 To unsubscribe from this group, send email to [EMAIL PROTECTED]
 For more options, visit this group at 
http://groups.google.co.uk/group/doctrine-svn?hl=en-GB
-~----------~----~----~----~------~----~------~--~---

Reply via email to