title: Laravel Eloquent hasMany returns null
body: <p>Laravel 4 is giving me unexpected results on a new project. To try and help me better understand the results I tried what I thought would be a simple exercise and use a friends old WordPress blog on his web hosting.</p>
  
  <p>Post model:</p>
  
  <pre><code>class Post extends Eloquent {
  
      protected $table = 'wp_posts';
  
      public function meta()
      {
          return $this-&gt;hasMany('Meta', 'post_id');
      }
  }
  </code></pre>
  
  <p>Meta model</p>
  
  <pre><code>  class Meta extends Eloquent {
  
      protected $table = 'wp_postmeta';
  
      public function post()
      {
          return $this-&gt;belongsTo('Post');
      }
  }
  </code></pre>
  
  <p>I have tried all of these variations with no avail...</p>
  
  <p>TestController:</p>
  
  <pre><code>public function get_index()
  {
  //        $test = Post::with('Meta')-&gt;get();
  //        $test = Post::with('Meta')-&gt;where('id', '=', '219')-&gt;first();
  //        $test = Post::find(219)-&gt;Meta()-&gt;where('post_id', '=', '219')-&gt;first();
  //        $test = Post::find($id)-&gt;Meta()-&gt;get();
  //        $test = Meta::with('Post')-&gt;get();
      $id = 219;
      $test = Post::find($id)-&gt;meta;
      return $test; 
  }
  </code></pre>
  
  <p>returned in the event listener:</p>
  
  <pre><code>string(47) "select * from `wp_posts` where `id` = ? limit 1" string(65) "select * from `wp_postmeta` where `wp_postmeta`.`post_id` is null" []
  </code></pre>
  
  <p>Please tell me I am just overlooking something really minor and stupid and I just need some sleep.</p>