Model::afterFind is called now for a findCount, I've read the code for
previous releases and it was called before. Is this a bug or a new feature?,
should I change all my afterfind methods?

Regards,

Pablo Viojo
[EMAIL PROTECTED]
http://pviojo.net

Are you Needish? ... http://needish.com



On Sun, Oct 12, 2008 at 2:16 PM, Mathew <[EMAIL PROTECTED]> wrote:

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

Reply via email to