title: laravel how to add a one to one relasionship
body: <p>I have a <code>restaurant</code> table with <code>id</code> and <code>manualaddress_id</code> fields.</p>
  
  <p>I have a <code>manualaddress</code> table with <code>id</code> and <code>restaurant_id</code> fields.</p>
  
  <p>of course I have more fields but I am trying to simplify the problem.</p>
  
  <p>Every restaurant has one manual address and each manual address belongs to one restaurant so the relationship is one to one.</p>
  
  <h3>First of all</h3>
  
  <p>Should I really add the <code>restaurant_id</code> to the <code>manualaddress</code> table?</p>
  
  <h3>Second</h3>
  
  <p>I know that to have this relationship in the model, I have to use this:</p>
  
  <pre><code>class ManualAddress  extends Eloquent{
  
      public function restaurant()
      {
          return $this-&gt;belongsTo('Restaurant', 'id');
      }
  </code></pre>
  
  <p>and this:</p>
  
  <pre><code>class Restaurant extends Eloquent
  public function manualAddress()
      {
          return $this-&gt;hasOne('ManualAddress', 'restaurant_id');
      }
  </code></pre>
  
  <p>but that makes me in a problem, which is:
  I can't add a restaurant because each restaurant must have a <code>manualaddress_id</code> and I can't add an manual address because each manualaddress mush have a <code>restaurant_id</code></p>
  
  <p>I am right? I am confused :)</p>