Monday, September 3, 2012

Re: HABTM with keys pointing to itself.

Sorry I am still a super newbie when it comes to cakephp.  I named it courses_courses because that was the two tables that are begin joined.  The table is setup like you described (id, course_id, prereq_id).  I am not set in stone on any naming convention.  I am just trying to find a quicker way to prototype sites.  I ended up doing this site without a framework (doing more time researching frameworks then actually working on the site).  I would like to know how this could be accomplished.  I can also see it being applied to user group that belong to other user groups.

On Tuesday, August 28, 2012 11:42:28 PM UTC-6, Scott Taylor wrote:
I agree that your model and table name is odd, but if it works for you than cool.
In an attempt to better understand what you want to do...
What does your courses_courses table look like?
I assume it contains the following fields or something like this...
id, course_id, prereq_id

--
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en-US.
 
 

No comments: