title: Kohana ORM has_many belongs_to
body: <p>Lets say I have 3 models, One, Two, and Three.</p>
  
  <p>Model One has many Three, Model Two has many Three, Three belongs to One and Two.</p>
  
  <p>Models:</p>
  
  <pre><code>class Model_One extends ORM {
  
  protected $_primary_key = 'one_id';
  
  protected $_has_many = array(
      'threes'=&gt; array(
          'model' =&gt; 'three',                
          'through' =&gt; 'ones_threes',   
          'far_key' =&gt; 'three_id',       
          'foreign_key' =&gt; 'one_id'   
          ),
      );
  }
  
  class Model_Two extends ORM {
  
  protected $_primary_key = 'two_id';
  
  protected $_has_many = array(
      'threes'=&gt; array(
          'model' =&gt; 'three',                
          'through' =&gt; 'twos_threes',   
          'far_key' =&gt; 'three_id',       
          'foreign_key' =&gt; 'two_id'   
          ),
      );
  }
  
  class Model_Three extends ORM {
  
  protected $_primary_key = 'three_id';
  
  protected $_belongs_to = array(
      'ones'=&gt; array(
          'model' =&gt; 'one',                
          'through' =&gt; 'ones_threes',    
          'far_key' =&gt; 'one_id',       
          'foreign_key' =&gt; 'three_id'   
          ),
  
  'twos'=&gt; array(
          'model' =&gt; 'two',                
          'through' =&gt; 'twos_threes',    
          'far_key' =&gt; 'two_id',       
          'foreign_key' =&gt; 'three_id'   
          ),
  );
  }
  </code></pre>
  
  <p>I display One, Two, Three.</p>
  
  <pre><code>$getTwos=ORM::factory('two')-&gt;find_all(); 
  
  foreach($getTwos as $getTwo)
  {
     echo $getTwo-&gt;two_category_title;
     foreach($getTwo-&gt;three-&gt;find_all() as $getThree)
     {
         echo $getThree-&gt;three_title;
         echo $getThree-&gt;one-&gt;one_author; 
     }
  }
  </code></pre>
  
  <p>Lets say I have author A and B and Title 1, Title 2, Title 3, and Title 4. A has Title 1, 2, 3, and B has Title 4.</p>
  
  <p>Problem is echo $getThree->one->one_author; will echo A, B, NULL, NULL. </p>
  
  <p>How can I echo the information correctly?</p>