Cake caching model associations?
Hi,
Quick question about Cake and model associations.
I had an association that worked fine:
User hasOne UserAccount
fk: UserAccount.user_id
UserAccount belongsTo Club
fk: UserAccount.club_id
I have now changed this, so that
User hasOne UserAccount
fk: UserAccount.user_id
UserAccount belongsTo ClubAccount
fk: UserAccount.club_account_id
Despite having been through every model, deleted the cache and set
debug to 2, Cake is still trying to join UserAccount with Club rather
than ClubAccount. I'm at my wits end trying to work out where this is
going wrong, even to the point of deleting and rewriting all of the
model files, but it still is looking for the old association.
There are no relationships set up in the database (MyISAM rather than
InnoDB so that can't be the problem) and the database fields are
correct for the new arrangement.
Anybody got any ideas?
Cheers!
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

0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home