for same purposes you can use TrueFieldBehavior.
It allow to declare witch fields you need to add during fetch.

        var $actsAs = array(
                'TrueField'  => array (
                        'subj_id' => "concat(subject,' (',id,')')",
                        'subj_body' => "concat('Subj: ',subject,'. 
',article_body)"
                ),
        );

This behavior allw to generate any sql based fields.

Read about it there:
http://cakeexplorer.wordpress.com/2007/09/10/autofield-behavior-or-how-to-add-additional-columns-to-your-models/
--~--~---------~--~----~------------~-------~--~----~
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