>
> thanks for the response. thats not quite what I want. Each user can
> have multiple ethnicities, so its a many to many relationship. In my
> models, I have User hadMany UsersEthnicities, Ethnicity hasMany
> UsersEthnicity and UsersEthnicity belongsTo User and Ethnicity. Is
> this correct?
Are you following this:
http://book.cakephp.org/view/83/hasAndBelongsToMany-HABTM ?
I don't think you have to do 'UsersEthnicities' explicity, unless
you're doing some complex SELECT. For simple editing, defining the
HABTM in the model should be enough.
--
Fedora 9 : sulphur is good for the skin
( www.pembo13.com )
--~--~---------~--~----~------------~-------~--~----~
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:
Post a Comment