title: CakePHP HATBM not working
body: <p>I'm starting a cakephp app, I've never used it in real world so I'm a bit confused how HABTM works, even though I read the documentation I couldn't get even the <code>$this-&gt;User-&gt;Subscription</code> and didn't see any extra object dumped</p>
  
  <p>What I want is to create a HATBM between users and subscriptions</p>
  
  <p>so I created three tables (users,subscriptions,users_subscribers) </p>
  
  <p>Then in my <code>User.php</code> model I did this</p>
  
  <pre><code>var $hasAndBelongsToMany =
      array(
          'Subscription' =&gt;
              array('className'=&gt;'Subscription',
                  'joinTable' =&gt; 'users_subscribers',
                  'foreignKey'             =&gt; 'user_id',
                 'associationForeignKey'  =&gt; 'subscription_id',
                  'unique' =&gt; true,
                 )
          );
  </code></pre>
  
  <p><code>SUbscription.php</code></p>
  
  <pre><code>    var $hasAndBelongsToMany = array(
          'User'=&gt;array('className'=&gt;'User',
                      'joinTable' =&gt; 'users_subscribers',
          'foreignKey' =&gt; 'subscription_id',
          'associationForeignKey' =&gt; 'user_id',
          'unique' =&gt; true));
  </code></pre>
  
  <p>Even with the tags example and following it, I cannot get the relation set, I also added the line <code>&lt;?php echo $this-&gt;element('sql_dump'); ?&gt;</code> to see if its running which it isn't...</p>
  
  <p>Could anyone guide me how exactly you get HATBM to work, what else do I need to verify?</p>
  
  <p>Full code:
  pages_controller.php
  <a href="http://sao.pastebin.com/PWQMhE2z" rel="nofollow">http://sao.pastebin.com/PWQMhE2z</a></p>
  
  <p>User model:
  <a href="http://sao.pastebin.com/PWqwAj1v" rel="nofollow">http://sao.pastebin.com/PWqwAj1v</a></p>
  
  <p>Subscription model:
  <a href="http://sao.pastebin.com/MfVFR4Kw" rel="nofollow">http://sao.pastebin.com/MfVFR4Kw</a></p>
  
  <p>subscriptions SCHEMA:
  <a href="http://sao.pastebin.com/mLRcEp1c" rel="nofollow">http://sao.pastebin.com/mLRcEp1c</a></p>
  
  <p>User SCHEMA:
  <a href="http://sao.pastebin.com/UeTRHh3u" rel="nofollow">http://sao.pastebin.com/UeTRHh3u</a></p>
  
  <p>users_subscriptions SCHEMA:
  <a href="http://sao.pastebin.com/4UeSDZte" rel="nofollow">http://sao.pastebin.com/4UeSDZte</a></p>