Hi Nate,

I should have worded my post better and not spoken about things in
terms of objects. Basically what I meant to say is can I get models
speaking to each other directly or does this go against MVC design
principles?

For example here is a code snippet from the controller for handling
reply posts:-

$this->Post->save($this->data);
$post_id = $this->Post->getInsertID();
// Add post to topic and update count
$category_id = $this->Topic->addPost($topic_id, $post_id);

Now instead of getting the controller to update Topic, could I setup
Post's afterSave routine to call Topic's addPost directly?


--~--~---------~--~----~------------~-------~--~----~
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