Looks like RC3 has added an empty array for the model when a COUNT is
performed.
before I would do this in my afterFind method.
foreach( $results as &$record )
{
if(isset($record['Portfolio']))
{
$record['Portfolio']['long_title'] = $this-
>getTitle( $record['Portfolio'] );
}
}
Now, I have to check if $record['Portfolio'] is also not empty.
Anyway, I hope this helps someone :)
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---