Glad that it worked :) On Monday, July 7, 2014 2:38:42 PM UTC+2, [email protected] wrote: > > Thank for your answer, and yes it works after checking the $_accessible > var. > I baked whole project, and by default the association was "hasMany" and > not hasOne. > I corrected this just after baking but not $_accessible who stay with > computer_config*s* instead of computer_config. > > Thank's again. > > Le lundi 7 juillet 2014 11:41:37 UTC+2, José Lorenzo a écrit : >> >> For first level associations it is not necessary to add ['associated' >> => ['ComputerConfigs'] a normal save() should work. >> >> I suggest to take a look at your Computer entity file. It should list the >> field 'computer_config' in the $_accessible array. Otherwise the >> tampering protection mechanism will block the field and the value will be >> lost. >> >>
-- 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.
