Consider Post hasMany Comment
Comment->find('all') returns {n}.Comment.*
Post->find('all') gives you Comment.{n}.*
If I want a helper to do processing on a list of comments, I have to
handle both potential formats, or massage the data.
Related to this is the $primary parameter to the afterFind callback.
Perhaps find results as objects instead of arrays?
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---