#1503: sfFormDoctrine sets all non specified properties to '' instead of NULL
--------------------------------------------------------+-------------------
 Reporter:  Chekote                                     |       Owner:  romanb
     Type:  defect                                      |      Status:  new   
 Priority:  major                                       |   Milestone:        
Component:  Inheritance                                 |     Version:  1.0   
 Keywords:  empty string null inheritence symfony form  |    Has_test:  0     
 Mystatus:  Pending Core Response                       |   Has_patch:  0     
--------------------------------------------------------+-------------------
 This causes a major problem with single table inheritance (such as
 Doctrine uses)

 There are three classes, a b & c.

 Both b and c extend a, and b has a property called "myProperty" which is
 unique.

 Whenever you try to save an instance of c, the column "myProperty" is
 set as an empty string instead of NULL. This prevent's a second instance
 of c from being saved because it violates the UNIQUE constraint.

 This problem only exists when you use the sfFormDoctrine class. Creating a
 saving Doctrine entities yourself works fine.

-- 
Ticket URL: <http://trac.doctrine-project.org/ticket/1503>
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