Re: Self-Join a Model

2016-01-15 Thread shidhu40
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

Re: Self-Join a Model

2009-11-14 Thread LancerForHire
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

Re: Self-Join a Model

2009-11-14 Thread Jeff Deroshia
, 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( >

Self-Join a Model

2009-11-14 Thread LancerForHire
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'