On Thu, Jun 14, 2012 at 9:59 AM, Steve Found <[email protected]> wrote: > Hmmm... I'm not convinced that Cake will handle a HABTM relationship with a > model to itself very well as the table alias will be the same name in the > SQL it generates.
No, that's exactly the way to do it. Cake will use the alias -- not the className -- for the SQL. In this case, it'll use Follower/Following. The className option seemed redundant to me at first; this explains why it's there. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/cake-php
