title: Kohana 3.2 ORM many-to-many - wrong field names
body: <p>I trying to make many-to-many relation between 2 models: Users_Role and Users_Right</p>
  
  <pre><code>class Model_Users_Role extends ORM{
      protected $_has_many = array(
          'rights' =&gt; array(
              'model'   =&gt; 'users_right',
              'through' =&gt; 'users_roles_rights',
          ),
      ); 
  }
  
  class Model_Users_Right extends ORM{    
      protected $_has_many = array(
          'roles' =&gt; array(
              'model'   =&gt; 'users_role',
              'through' =&gt; 'users_roles_rights',
          ),
      );
  }
  </code></pre>
  
  <p>I'm trying to do this: </p>
  
  <pre><code>$role = ORM::factory('users_role', 1);
  $right = ORM::factory('users_right', 1);
  $right-&gt;add('roles', $role);
  </code></pre>
  
  <p>Error:</p>
  
  <pre><code>Database_Exception [ 1054 ]: Unknown column 'role_id' in 'field list' [ INSERT INTO `users_roles_rights` (`users_right_id`, `role_id`) VALUES ('1', '1') ]
  </code></pre>
  
  <hr>
  
  <p>I tryed to make it on the other side:</p>
  
  <pre><code>$role = ORM::factory('users_role', 1);
  $right = ORM::factory('users_right', 1);        
  $role-&gt;add('rights', $right);
  </code></pre>
  
  <p>New error:</p>
  
  <pre><code>Database_Exception [ 1054 ]: Unknown column 'right_id' in 'field list' [ INSERT INTO `users_roles_rights` (`users_role_id`, `right_id`) VALUES ('1', '1') ]
  </code></pre>
  
  <p>I expected ORM to use <code>users_role_id</code> and <code>users_right_id</code> field names in pivot table, but it uses wrong name of far key? Where I have made a mistake?</p>