Laravel 5.2 belongsTo relationship with condition not working
<p>I go problem with <code>belongsTo()</code> relationship as the following.</p>

<p>My Model</p>

<pre><code>class TypeOne extends Model{

}
===============================
class TypeTwo extends Model{

}
===============================
class Post extends Model{
    public function typeOne(){
        return $this-&gt;belongsTo('Type','type_id')-&gt;where('object_type','type_one');
    }
    public function typeTwo(){
        return $this-&gt;belongsTo('Type','type_id')-&gt;where('object_type','type_two');
    }

    public function getPost(){
        return Post::with(['typeOne','typeTwo'])-&gt;get();
    }
}
</code></pre>

<p>And I will get error <code>column "object_type" does not exist</code></p>

<p>What should I do with this?</p>