Is it possible to make CakePHP to return array of objects of specified
class instead of array of arrays. What I mean, f.e.
I have 'users' table and 'User' model. User has name, login, password
and email.
I make, let's call it value object class:
class UserVO {
   var $name;
   var $login;
   var $password;
   var $email;
}

And making f.e. User->findAll() I'd like do get array of UserVO
objects instead of array of associative arrays.

It is possible in configuration or sometring, or should I write it by
hand - fetcing all the arrays and building arrays of new
UserVO($result[i]);

What do You think ?

I'd like to use it for mapping classes in remoting services


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