I figured this one out after looking at Ticket #518 in trac: https://trac.cakephp.org/ticket/518
Thought it might help someone else out. Associations set with bindModel are removed after a query on the primary model. For instance, if you have a model Event and you bind the model Contact with a HABTM association to it, you can call $this->Event->Contact->findAll (); and then $this->Event->read (null, $id); and still get the Contact data. But if you then try to call $this->Event->save ($this->params['data']); the association will have been removed by the read query. So if you need to perform two queries on Event that need to do something with Contact data, you need to call bindModel before each query. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
