It's complaining because the insert includes just the modified and created fields, whereas your table requires that certain columns not be null. The other columns are not represented because you haven't set up your code correctly for Cake to include those data.
On Fri, Jan 4, 2013 at 10:21 AM, Karl Smith <[email protected]> wrote: > Also I forgot to list the errors I have been getting when running my > script..... > > Warning (512): SQL Error: 1452: Cannot add or update a child row: a foreign > key constraint fails (`ilsa_slic`.`spreadsheets`, CONSTRAINT > `spreadsheets_ibfk_1` FOREIGN KEY (`coverage_id`) REFERENCES `coverages` > (`id`)) [CORE/cake/libs/model/datasources/dbo_source.php, line 684] > > Query: INSERT INTO `spreadsheets` (`modified`, `created`) VALUES > ('2013-01-04 09:19:05', '2013-01-04 09:19:05') > > Warning (2): Cannot modify header information - headers already sent by > /cake/libs/debugger.php:686) [CORE/cake/libs/controller/controller.php, line > 742] > > -- > Like Us on FaceBook https://www.facebook.com/CakePHP > Find us on Twitter http://twitter.com/CakePHP > > --- > You received this message because you are subscribed to the Google Groups > "CakePHP" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > Visit this group at http://groups.google.com/group/cake-php?hl=en. > > -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. Visit this group at http://groups.google.com/group/cake-php?hl=en.
