Hi there,

i have more than 12 Models. But for me are only 2 Models important. "User" 
and "Event"
in the User Model i have set 2 virtualFields

public $virtualFields = array(
    'full_name' => 'CONCAT(User.vorname, " ", User.nachname)',
            'userkennzeichen' => 'CONCAT(User.vorname, " ", User.nachname, 
" - Kennzeichen: ", User.einsetzbarin)'
);


Now i try to get the "userkennzeichen" virtualField in a HABTM listing in 
my Event Controller.

How i can do this when i have set conditions too

$drivers = $this->Event->User->find('list', array('conditions' => 
array('User.role' => 'driver')));

I am very grateful for help
Jerome

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/cake-php?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to