Hi there !

New to Cake, I discover the framework. I currently use Rails also.

Is there a reason for find/findAll methods to return an array, rather
than an object (instance of the model class) ? Is there other methods,
not documented, returning object rather than array ?

If returning an object (or an array of objects), I can call the public
method of my models, in a "good" way. Today,  I can't : first create a
new object and call the method passing the array return by find. Crapy
for object programming, isn't it ?

Anyway, I must miss something to think the array is not a good solution
for "clean" object programming. So please explain me so I can improve
my skills ;)

Tony

PS: sorry for my crapy english.


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to