title: Kohana 3 simple relations
body: <p>I'm trying to write a very simple cms (for learning purposes) in kohana 3 web framework.
  I have my db schemas and i want to map it to ORM but i have problems with relations.</p>
  
  <p>Schemas:<a href="http://wstaw.org/w/5zp/" rel="nofollow noreferrer">articles</a> and <a href="http://wstaw.org/w/5zq/" rel="nofollow noreferrer">categories</a></p>
  
  <p>One article has one category. One category might has many articles of course.</p>
  
  <p>I think it is has_one relationship in article table.(?)</p>
  
  <p>Now php code. I need to create application/classes/models/article.php first, yes? </p>
  
  <pre><code>class Model_Article extends ORM
  {
      protected // and i am not sure what i suppose to write here       
  }
  </code></pre>