Thursday, January 28, 2010

Re: [HELP PLEASE] Question: HABTM

On 1/27/2010 2:06 PM, Douglas Pacheco Cardoso wrote:
> I have 3 tables:
> - Users
> - Locals -> access locals of the system.
> - Permissions -> Table N:M with the fields (id, user_id, local_id,
> _add, _read, _delete, _update)
>
> I created a page for managing permissions, but I have a problem,
> because when I execute saveAll method, is saving only the fields:
> user_id and local_id, not the specific fields.
>
> Anybody have a tip for me?
>

http://teknoid.wordpress.com/2008/09/24/saving-extra-fields-in-the-join-table-for-habtm-models/

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 cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en

No comments: