I have a model Event that hasMany Ticket.
Ticket has a field called "price".

I would like to accomplish that Event gets an attribute
"total_ticket_price", which is the sum of "price" for all of Event's
Tickets.

I have been trying to looking into the afterFind() method, but I have
been unable to accomplish this.

Your help is much appreciated.
--~--~---------~--~----~------------~-------~--~----~
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