I figured it out.I was using the form helper.The has many realtionship expects field names like $this->form->input( Account.0.new).Instead I was just using Account.new and placed a random null character.Does anyone no why it expects the field name in this format ?
On Wed, Mar 23, 2011 at 1:49 PM, cricket <[email protected]> wrote: > On Wed, Mar 23, 2011 at 12:50 PM, Kreece <[email protected]> wrote: > > I am having a problem where replaces the first character of my data > > with a null character here is the SQL that cake generates. > > > > INSERT INTO `locations` (`new`) VALUES ('\0reen') > > Looks like something's replacing random words in your message with NULL, > also. > > What DB are you running? OS? Cake version? > > What does your code look like? > > What does $this->log($this->data) give? > > -- > Our newest site for the community: CakePHP Video Tutorials > http://tv.cakephp.org > Check out the new CakePHP Questions site http://ask.cakephp.org and help > others with their CakePHP related questions. > > > To unsubscribe from this group, send email to > [email protected] For more options, visit this group > at http://groups.google.com/group/cake-php > -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/cake-php
