title: Kohana 3.1 orm. How to make this has_one relashionship?
body: <p>I have 2 models: <code>Address</code> and <code>Country</code>. Now, every address has exactly one country. So <code>Address</code> model has:</p>
  
  <pre><code>protected $_has_one = array('country' =&gt; array(
      'model' =&gt; 'Country',
      'foreign_key' =&gt; 'code',
  ));
  </code></pre>
  
  <p>I load <code>Address</code> object:</p>
  
  <pre><code>$addr = ORM::factory('Address', 1);
  $country = $addr-&gt;country-&gt;find();
  </code></pre>
  
  <p>But <code>$country</code> always contains first record instead of a related record from the <code>Country</code> table.<br/>
  Am I doing something wrong here? If yes, what's the correct way?</p>
  
  <p><strong>EDIT:</strong><br />
  table <code>Country</code> has PK <code>code</code> and no FK.<br/>
  table <code>Address</code> has PK <code>id</code> and FK <code>country_code</code></p>