When I bake my models using 1.2beta the rules stated at tempdocs (see
below) for #foreignKey and #associationForeignKey are not valid.
Instead, after my bake, foreignKey is populated with the current
model, and aFK is populated with the "other" model.

The following has been taken from http://tempdocs.cakephp.org/#TOC86279:

#foreignKey: the name of the foreign key found in the other model.
This is especially handy if you need to define multiple HABTM
relationships. The default value for this key is the underscored,
singular name of the other model, suffixed with '_id'.

#associationForeignKey: the name of the foreign key found in the
current model. This is especially handy if you need to define multiple
HABTM relationships. The default value for this key is the
underscored, singular name of the current model, suffixed with '_id'.

I'm guessing the documentation isn't correct, as when I switched the
associations in my models (just to check the validity of the
information from tempdocs on this topic) all kinds of funky things
happened.  Perhaps I've made some kind of mistake.  For the record, I
made no code changes to my MVC files after bake, other than the
temporary switching of associations.

Below is the associated tables I baked from.

//sql
http://pastebin.com/f5d3d7ec5

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to [email protected]
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to