title: Laravel hasMany relationship not working properly
body: <p>i am new to Laravel model relationships, and i am trying to learn it by building a basic forum system.
  I am trying to have the fourms belong to the forums categories:</p>
  
  <p>Here is my ForumCategory model:</p>
  
  <pre><code>class ForumCategory extends Eloquent {
  
      protected $table = 'forum_categories';
  
        public function forums()
      {
          return $this-&gt;hasMany('Forum','category_id');
      }
  }
  </code></pre>
  
  <p>The forum model name is Forum and the foreign key is category_id.</p>
  
  <p>Here is the forum model:</p>
  
  <pre><code>class Forum extends Eloquent {
  
      protected $table = 'forums';
  }
  </code></pre>
  
  <p>Here is how I try to test it:</p>
  
  <pre><code>$category=ForumCategory::find(1);
  print_r($category-&gt;forums());
  </code></pre>
  
  <p>But what i get from the print_r is a very large object, and not the related forums.</p>
  
  <p>Thank you.</p>