title: Relationship between User and Comment model
body: <p>I did relationships between different models all the time but for some reason I can't get this one to work. I tried everything I can find on Google but no luck.</p>
  
  <p>I want to create a relation between Comment and User models. Any user can make many comments and I need to use email address of the commenter.</p>
  
  <p>Basically, this:</p>
  
  <pre><code>$comments-&gt;user-&gt;email
  </code></pre>
  
  <p>My database looks like this:</p>
  
  <pre><code>userdata
  --- id
  --- username
  --- email
  
  comments
  --- id
  --- username
  --- comment
  </code></pre>
  
  <p><code>userdata.username</code> and <code>comments.username</code> should be related to eachother.</p>
  
  <p>I pass the data to views like this:</p>
  
  <pre><code>Comment::with('user')-&gt;where('on', $news-&gt;id)-&gt;orderBy('id', 'DESC')-&gt;take(10)-&gt;get()
  </code></pre>
  
  <p>No matter what I try, I can't get it to work. Relations are not created. Maybe I came across a strange laravel bug?</p>
  
  <p>Those are my models: (I write the default ones since I messed them up so much trying different approaches)</p>
  
  <pre><code>class Comment extends Eloquent {
  
      public static $key = 'id';
      protected $table = 'comments';
      public $timestamps = true;
  }
  
  
  class User extends Eloquent implements UserInterface, RemindableInterface {
      protected $table = 'userdata';
      public $timestamps = false;
  
      //It contains necessary imports and methods, I cutted them off for stackoverflow
  }
  </code></pre>
  
  <p>Does anybody have an idea how can I solve this?</p>