Re: Undefined index with associated afterFind()
Rodrigo: Pre-calculation is not an option as all products in the
system would have to be recalculated when core values are changed. I
tried doing that originally and it was very,, very messy.
Jeremy: Thanks, i've tried the recursion and contain properties with
no luck. Whatever I try the Product model does no include the
Material array (on which it depends) when called from the Quote
model. The only other way i can think of is to associate the material
with the quote and perform the calculations again but this means
repeating code. Surely the quote model should should load the
material model inside the product model through association?
On Feb 16, 12:42 pm, Rodrigo Rodrigues Moyle <rodrig...@gmail.com>
wrote:
> A better way is pre-calculate the values and save on database.
--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home