On Jun 12, 12:54 pm, AD7six <[EMAIL PROTECTED]> wrote:
> It's redundant only if you have no model associations unless you want
> to risk for example, Post.comment being impossible to access.

But shouldn't this logic also apply to associated models. Currently,
if you have a post and its comments, you would do:

$post['Comment'][0]['author']

To get the author field of the comment; but you would do

$post['Comment'][0]['Profile']['homepage']

to get the field 'homepage' from the recursively fetched model
'Profile'; that is, fields and associated models are mixed together in
this case. Odd as it might seem, it would be better, and more
consistent, if Cake produced an array like this:

$post['Comment'][0]['Comment']['author']
$post['Comment'][0]'Profile']['homepage']

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