title: Laravel 5 - polymorphism comments table with conditions
body: <p>In my program a user can comment on a news and on a match.</p>
  
  <pre><code>Comment table:
  
  id - (primary)
  comment_type - (1 =  match, 2 = news)
  comment_id (The id to the type. News.id or match.id)
  profile_id
  text
  </code></pre>
  
  <p>I have a problem with the relationship because the comment table can store both news comments and match comments, and I do not have foreign key because of that.</p>
  
  <p>I have tried to do it like this:</p>
  
  <pre><code>Comment model
  
   public function comment()
      {
          return $this-&gt;morphTo();
      }
  
  News model
  
  public function comments()
      {
          return $this-&gt;morphMany('App\Comment', 'comment');
      }
  </code></pre>
  
  <p>I would like the comments to be in one table instead of a match_comment and news_comment table.</p>
  
  <p>When I call $news->comments, it returns a empty array.</p>
  
  <p>Can anybody help?</p>
  
  <p>Thanks in advance
  Andreas</p>