No, there is no default value in the database. If I store directly to the database without using the admin generator and without specifying a value for the field I get the correct behaviour, no value is stored. If I save through the admin generator without specifying a value, 0 is stored.
On Jul 26, 1:40 pm, Haris Zukanovic' <[EMAIL PROTECTED]> wrote: > Is 0 the default value for the field in your database ? > > > > Daniel Staver wrote: > > When I leave an integer field blank in a form generated by the admin > > generator the actual value stored in the database is 0. > > > However, this breaks validation with the sfNumberValidator as the > > permitted values for this particular field is a nubmer between > > 1960-2020 if a number is entered. Is there a way to change this so > > that it doesn't try to store the value 0 when the field is actually > > blank? > > > If I try to create this object directly with propel it's stored as > > expected, I only run into the problem when I save through the admin > > generator. > > -- > Haris Zukanovic > CEO > Software development and research > International Business Development, SOFTING ltd. > > office +387 36 318 339 > GSM +387 61 839 069 > > http://www.eu-softing.com > > CONFIDENTIALITY NOTICE > This e-mail and any attached files, sent by a company e - mail system, > contains company confidential and/or privileged information and is intended > only for the person or entity to which it is addressed and only for the > purposes therein set forth. If you are not the intended recipient (or have > received this e-mail in error) please notify the sender immediately and > destroy this e-mail. Any unauthorized copying, disclosure, distribution or > other use of, or taking of any action in reliance upon, the material in this > e-mail by persons or entities other than the intended recipient is strictly > forbidden. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "symfony users" 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.com/group/symfony-users?hl=en -~----------~----~----~----~------~----~------~--~---
