If your association has a dynamic foreign model, then you need to
rebind the association before each request to ensure the correct model
is used.  Or, if the model stays the same, but that model's table
changes, then you just want to change the associated model's
"useTable" property before each request.

Either way, you should be able to do it in your Organiserobject's
beforeFind() callback - look at the provided query conditions and
either use bindModel/unbindModel (to change what foreign model you are
associated to), or to just have $this->ReferenceObject->useTable =
'whatever_table'; to change which foreign table is being queried for
the ReferenceObject.


--~--~---------~--~----~------------~-------~--~----~
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?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to