title: Many to one on one table, relationship in laravel
body: <p>I have model, named Magazine. This model represents of magazines table.</p>
  
  <pre><code>magazines
  --id
  --name
  </code></pre>
  
  <p>I also have model, named Transfer. This model is represents of transfers table.
  In this table I would like store information about product transfers.</p>
  
  <pre><code>transfers
  --id
  --source
  --target
  </code></pre>
  
  <p>There are two important columns, source is id of magazine from I getting product, target is id of magazine where I put the product. </p>
  
  <p>How should I create relationship in Eloquent model? I did something like this</p>
  
  <pre><code>public function source()
  {
      return $this-&gt;belongsTo('Magazine', 'source');
  }
  
  public function target()
  {
      return $this-&gt;belongsTo('Magazine', 'target');
  }
  </code></pre>
  
  <p>But, doesn't work. If I call $transfer->source I only get id, which is stored in this column(integer value). But I would like get Magazine object. If I change method name from source() to magazine(), Eloquent returns Magazine object, and this is correct. </p>
  
  <p>How should I create relationship if source and target indicate on the same table</p>