and one more thing.... according to this code in model.php if (!empty($newValues)) { $fields = join(',', array( $db->name($this->hasAndBelongsToMany[$assoc]['foreignKey']), $db->name($this->hasAndBelongsToMany[$assoc] ['associationForeignKey']) )); $db->insertMulti($this->{$join}, $fields, $newValues); } there is no way to save additional data
On 2 июл, 23:23, James K <[EMAIL PROTECTED]> wrote: > CakePHP has no problem reading extra fields in your join table. As > long as you're naming your join table correctly and have a > hasAndBelongsToMany relationship to the model on the other side of the > join table, it'll pull the extra fields from a find automatically. > > On Jul 2, 5:35 am,XuMiX<[EMAIL PROTECTED]> wrote: > > > > > i have a habtm relation, persons, groups, and a relation table > > groups_persons > > i need to add some more info into the relation table, for instance > > year of presence, role, etc. > > how do i get that info within cake ? Or how do i organize my tables > > and models? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com 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 -~----------~----~----~----~------~----~------~--~---