If I have a model (say ModelA) and it has a relationship to another model (ModelB). I can access ModelB in ModelA by $this->ModelB. How can I associate ModelB without a relationship.
For example. If i wanted to write a sting field to ModelB every time I save data to ModelA I can place $this->ModelB->saveField() in the beforeSave callback. But what if ModelB is ot related to ModelA in any way? Do I need to explicitly create the ModelB object inside the constructor function? Looks to me like we need a $associated array separate from $hasOne, $hasMany, etc. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
