title: Multiple levels of "has many" relationship
body: <p>I want to achieve a structure where e.g. an Organisation has many Departments, and where Departments has many Persons.</p>
  
  <p>I've set up my model structure like this:</p>
  
  <p><strong>Organisations</strong></p>
  
  <pre><code>&lt;?php
  
  class Organisation extends AppModel {
  
      public $hasMany = array(
              'Department' =&gt; array(
                  'className' =&gt; 'Department',
                  'foreignKey' =&gt; 'organisations_id'
              )
          );
  }
  </code></pre>
  
  <p><strong>Departments</strong></p>
  
  <pre><code>&lt;?php
  
  class Department extends AppModel {
  
      public $hasMany = array(
              'Person' =&gt; array(
                  'className' =&gt; 'Person',
                  'foreignKey' =&gt; 'departments_id'
              )
          );
  }
  </code></pre>
  
  <p><strong>Persons</strong></p>
  
  <pre><code>&lt;?php
  
  class Person extends AppModel {
  
  }
  </code></pre>
  
  <p>Then I have a controller like this:</p>
  
  <pre><code>&lt;?php
  
  class OrganisationsController extends AppController {
  
      public $helpers = array('Html', 'Form', 'Session');
      public $components = array('Session');
  
  
      public function index() {
          $this-&gt;set('organisations', $this-&gt;Organisation-&gt;find('all'));
      }
  
  }
  </code></pre>
  
  <p>When I print out $organisations I get an array like this:</p>
  
  <pre><code>Array
  (
      [0] =&gt; Array
          (
              [Organisation] =&gt; Array
                  (
                      [id] =&gt; 1
                      [created] =&gt; 2013-01-03 16:02:47
                  )
  
              [Department] =&gt; Array
                  (
                      [0] =&gt; Array
                          (
                              [id] =&gt; 1
                              [created] =&gt; 2013-01-03 16:02:47
                              [organisations_id] =&gt; 1
                          )
  
                  )
  
          )
  
  )
  </code></pre>
  
  <p>I'm new to both PHP and CakePHP, but wouldn't you expect the Person array to be included in the Organisation array? And if not, is there another way to achieve a structure like the one described above (Organisation->Department->Person)?</p>
  
  <p>Any hints on how to go about this is highly appreciated! :)</p>