i've played with bindModel and unbindModel and use them both in my app
at the moment.

what i'm more looking for, is a way to define a function in my main
app_model that will be able to loop through it's current associations.

so, when I'm deactiviating a record I'll be able to cascade that
deactivation to each of it's associated records. i'd like to be able
to do this once in my app_model and not in each and every model.

does that make sense?

so, in an afterFilter if a deactivate action has been called I would
like to check that models asssocations for dependent records and
deactivate (or delete) them.

is it possible? or am i not supposed to access the associations array?

On 20/09/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> I had another post on this.  You can use bindModel in the controller to
> define associations on the fly.  I try to only do this when absolutely
> necessary.  Also, you can leave the associations and just make generous
> use of $this->ModelName->recursive = 0.
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
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