Ok, this is solved, I can get the fields I need by adding the 'fields'
parameter

    $this->data = $this->Message->find(
      'all',
      array(
        'fields' => array('SenderProfile.firstname',
'RecipientProfile.firstname'),
        'joins' => array(...)
      )
    );

So we have a workaround, thank you Brian!


On Sep 29, 8:40 pm, Mario <mario.calli...@gmail.com> wrote:

>
> The problem is that in place of '*' I get all the Message, Sender and
> Recipient fields but not the SenderProfile and RecipientProfile ones
> (even if I can test with PHPMyAdmin that correct values are returned
> with a SELECT * ...).
>
> What do you think? Thank you in advance

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to