[EMAIL PROTECTED] wrote:
> with debug set to zero doesn't CakePHP cache the model views for 24
> hours at a time?  So, once you went live it is going to cache the model
> for 24 hours at a time.  And if you don't need those models then why
> are you making associations for them?
>

If you are building big business application then almost all models are
associated some how.

> You need to be careful using bindModel all over the place.  Cause then
> instead of CakePHP building the association for use later it has to
> build it for each request you make.  You can save yourself on the
> actual query by using the $recursive parameter.  This will limit the
> SQL query to just the model (table) you are working on if set to zero.
>

I know about $recursive variable. But it is not the point. The point is
that all Models classes are constructed.

And you are right with bindModel function. When I removed
hasAndBelongsToMany association from one of my model and binded it in
action function del() $model->del() function didn't remove associations
from DB.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to