First of all, you don't need to create a new Post object.  As long as
you specify $uses = array('Post') in the controller, or if you're in
PostsController, in which case it is automatically available, you can
use $this->Post, and call $this->Post->create() to create a new record.

As far as putting logic in your model, if you create a relationship
between Post and Topic, Topic will be available inside Post as
$this->Topic, so you can trigger the update of an associated Topic
record.


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