model association results

2007-12-26 Thread lordG

Hi guys,

There seems to be something incorrectly happening with model
association calls and the naming of the resulting record arrays. If I
have a Model called LayoutModel with $name = 'Layout', then naturally
all the findAll calls etc will give me a resultset with the array keys
as 'Layout'.

However, when one does a call through an associated model like
PageModel which has in my example a belongsTo association to
LayoutModel, the layout resultset comes out in arrays 'LayoutModel'.

This seems like an inconsistency, wouldn't you agree?
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Re: model association results

2007-12-26 Thread lordG

This does also tend to be related to my post on naming conventions in
http://groups.google.com/group/cake-php/browse_thread/thread/35318b04d8a93144/fcffe0e17499f82c?lnk=stq=#fcffe0e17499f82c

if the class name and the $name value are to be the same, why is this
not the case with Controllers? Is this not inconsistent?
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---