d'
)
);
}
Here SubTopic and SubHeading are alias name used for array data handling.
--
View this message in context:
http://cakephp.1045679.n5.nabble.com/Self-Join-a-Model-tp1256261p5721928.html
Sent from the CakePHP mailing list archive at Nabble.com.
--
Li
The name collision has been fixed and everything is working dandy.
Thanks a bunch Jeff!
On Nov 14, 4:59 pm, Jeff Deroshia wrote:
> You have a name collision for starters. The class Topic has the name Topic,
> and its Associations have the same name. You can try changing the aliases
> like hasMa
, LancerForHire wrote:
> How can I self join a model? I want the Topic Model to have many child
> topics or be the child of one topic. I am trying to use:
>
> class Topic extends AppModel {
>var $name = 'Topic';
>var $hasMany = array(
>
How can I self join a model? I want the Topic Model to have many child
topics or be the child of one topic. I am trying to use:
array(
'className' => 'Topic',
'foreignKey' => 'parent_id'