I guess the relation is "user hasMany user_datail".

Please, send us the array you're tryng to save.



On 9 feb, 16:59, Aktarus <[email protected]> wrote:
> Hello,
>
> I am starting with CakePHP, the latest version.
> I have created 2 tables: 'users' and 'user_details' - they are
> obviously related ;)
>
> I am creating a record using Model.save(), it works OK.
> I am trying to do the same with saveAll(), expecting that my user
> **and** his details will be saved in the same transaction but I get a
> rollback immediatly after the user record is created :-(
>
> I am using MySQL innodb.
>
> I don't seem to get any more details as to why I get a rollback before
> the user details are stored - I am stuck.
> I was expecting to get a SQL error displayed in case some "NOT NULL"
> constraint or other SQL constraint was not met - I checked my code
> many time.
>
> Thanks for your help.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to