Re: String fields empty on a create()?

2007-08-02 Thread chewie124
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

String fields empty on a create()?

2007-08-01 Thread chewie124
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

Re: String fields empty on a create()?

2007-08-01 Thread Grant Cox
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()?