Remove the fields statement and see what you get!
Enjoy,
   John

On Jan 15, 5:00 pm, codef0rmer <[email protected]> wrote:
> @Amit Rawat: oh, silly mistake. I really need to keen my
> observation ;)
>
> var $virtualFields = array(
>        'full_name' => 'CONCAT(User.first_name, "", User.last_name)'
> );
>
> but the full_name key is not coming in
> $arrUser = $this->User->find("first", array(
>                         "fields" => array(
>                                 "User.first_name", "User.middle_name", 
> "User.last_name",
>                         ),
>                 ));
>
> returns,
> [User] => Array
>         (
>             [first_name] => foo
>             [middle_name] => bar
>             [last_name] => bar
>         )
Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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