lol, I knew it had to be easy but didn't expect that to be honest. It
works well now, you've saved me lots of time man, thanks a lot!

On Apr 10, 4:45 pm, grigri <[EMAIL PROTECTED]> wrote:
> replace this:
>
> $this->Comment->post_id = $post_id;
> $this->Comment->Post->id = $post_id;
>
> with this:
>
> $this->Comment->set('post_id', $post_id);
>
> In cake, the data fields of a model entity are never stored as member
> properties of the model object - they are stored in the $data member
> property, set using the set() method (it might seem that the $id
> member is an exception to this "rule", but it isn't - the member $id
> is always called $id, regardless of the actual name of the primary key
> field).
--~--~---------~--~----~------------~-------~--~----~
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?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to