Ok, figured it out, it's is not clear in the docs that relations behave like the rest of the properties and have to be allowed for mass assignment ...
/thomas On 15 Jul 2014, at 00:06, José Lorenzo <[email protected]> wrote: > Are you setting the property in a beforeSave or something similar? > > On Monday, July 14, 2014 11:55:47 PM UTC+2, Thomas von Hassel wrote: > Hey (sorry, for spamming ;) > > I have a Model that i want to save some associated data with (hasMany) > > I use patchEntity to merge my request data with the existing entity, and the > correct values are marked as dirty, but only the main model is being > persisted. > > One thing, the association is set in a Behavior and has some extra > conditions. > > > /thomas > > > -- > 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 unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/cake-php. > For more options, visit https://groups.google.com/d/optout. -- 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 unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/cake-php. For more options, visit https://groups.google.com/d/optout.
