Re: String fields empty on a create()?
My varchar columns have a default value of ''; would this then be a bug? On Aug 1, 4:03 pm, Grant Cox <[EMAIL PROTECTED]> wrote: > If you put a default value on the table fields, this should be used in > model->create() > > On Aug 2, 7:07 am, chewie124 <[EMAIL PROTECTED]> wrote: > > > Hi - > > I'm using cake 1.2 - Just a quick question - How come string fields > > (varchar in the DB) don't have their keys set when you do a model- > > > >create()? Is there a way to make it so it is? > > > Thanks, > > Rich --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: String fields empty on a create()?
If you put a default value on the table fields, this should be used in model->create() On Aug 2, 7:07 am, chewie124 <[EMAIL PROTECTED]> wrote: > Hi - > I'm using cake 1.2 - Just a quick question - How come string fields > (varchar in the DB) don't have their keys set when you do a model- > > >create()? Is there a way to make it so it is? > > Thanks, > Rich --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
String fields empty on a create()?
Hi - I'm using cake 1.2 - Just a quick question - How come string fields (varchar in the DB) don't have their keys set when you do a model- >create()? Is there a way to make it so it is? Thanks, Rich --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---