On Dec 12, 9:47 am, zonium <[EMAIL PROTECTED]> wrote:
<snip>
>
> - You can try abba bryant's approach. However the main point here is:
> the naming for foreign keys and the generateList's ignorance of the
> foreginKey statements and conditions specified for $belongsTo  (I dont
> see these 'secrets' documented any where)

I sense a general misunderstanding of what an object is, or how they
are implemented in cake.

e.g.
$this->Car->id = 'mine';
$keys = $this->Car->Owner->Key->findAll();

will not find all the keys that will open my car. It's the same as:

$Key = new Key();
$keys = $Key->findAll();

It will find all keys, belonging to (or not) an owner which may or not
be associated with A car etc.

There is no ignorance in the generateList method, it does what you
tell it to do. If you pass no constriant, or don't automatically
modify results in a beforeFind method based on some other logic, you
get everything (from the table) returned.

hth,

AD
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to