title: What does $this->Model1->Model2 accomplish in CakePHP HABTM?
body: <p>Basically, I've implemented the HABTM successfully in CakePHP, but the trouble is, I don't understand why it works. </p>
  
  <p>The thing I hate about the CakePHP cookbook is that is tells you what to do but make very little effort to explain the underlying segments of their code. </p>
  
  <p>Essentially, my data model is like this.</p>
  
  <p>Task HABTM Question</p>
  
  <p>I don't understand this code fragment.</p>
  
  <pre><code>$this-&gt;set('questions', $this-&gt;Task-&gt;Question-&gt;find('list'))
  </code></pre>
  
  <p>In particular, what is $this->Task->Question supposed to accomplish? </p>
  
  <p>Also how is the above code link to this code fragment in the view?</p>
  
  <pre><code>echo $this-&gt;Form-&gt;input('Question'); 
  </code></pre>
  
  <p>One thing that is very peculiar is that with the above code fragment, I get a multiple select option. </p>
  
  <p>However, if I change the code to this,</p>
  
  <pre><code>echo $this-&gt;Form-&gt;input('question');
  </code></pre>
  
  <p>I get a single select drop down list.</p>
  
  <p>I scoured the entire documentation and still cannot find a satisfactory explanation to my doubts.</p>
  
  <p>Would really appreciate if anyone can clarify this issue for me.  </p>