On Thu, Oct 28, 2010 at 5:38 PM, Caroline <[email protected]> wrote: > This is the code I run: > $object = array(); > $object['Taxcode']['id'] = '63ae4d63efeecf1655e9b948fdc114a8'; > $object['Taxcode']['acctaxcollected_id'] = ''; > $object['Taxcode']['acctaxpaid_id'] = ''; > $this->Taxcode->save($object);
This is really bad practice, IMO. It appears that you're trying to set a couple of foreign keys to the empty string. Either allow NULL on those columns or change your business logic, perhaps saving this data using an interim model. Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. 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] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
