Hi

I use this example: 
http://mrphp.com.au/code/code-category/cakephp/cakephp-1-2/attach-comments-any-model-cakephp

And I i have a question:
In models (Post, Event) we set property 'foreignKey' = 'foreign_id' in
$hasMany,
so why we must set again in 'view' action in 'Posts' controller: $this-
>data['Comment']['foreign_id'] = $id;,
why this value is not added automatic?

Anybody konw?
Any solutions?

Sorry, but my english is not perfect:)
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" 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