As far as generateList( ), again: you could use afterFind to create the
concatentation as a virtual field.  With respect to your afterFind
problem, I assume that not all operations require all virtual fields,
so for the parts that don't, simply wrap them in:

if (isset($results[$i]['Model']['field1']) &&
isset($results[$i]['Model']['field2'])) {
    $results[$i]['Model']['new_field'] =
$results[$i]['Model']['field1'] . ' ' .
$results[$i]['Model']['field2'];
}

The other option would be to do a "SELECT CONCAT(...) as field" in your
field list.


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to