Hi Ernesto

This (calculated/dynamic fields) has been brought up several times
here; this is a link to the most relevant thread I can find:

http://groups.google.com/group/cake-php/browse_thread/thread/f823cc7f168cd619

Should help you out

hth
grigri

On May 15, 12:47 pm, Ernesto <[email protected]> wrote:
> hello.
>
> i'm having some troubles :(
>
> i have an Order model hasMany Item model.
>
> Item should have a calculated field (Item.Cost/Item.Weight)
>
> - i modified $queryData in beforeFind callback... but this callback
> doesn't seems to work if the model isn't the primary one.
>
> - i modified $results in afterFind callback... but cake has many ways
> to load data...
>
> is there any other way?
--~--~---------~--~----~------------~-------~--~----~
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