Open martindilling opened 11 years ago
I get the same error because my relationships are something like this:
public function midias()
{
return $this->hasMany('Midia', 'id_conteudo')
->where('model', '=', 'Blog')
->orderBy('ordem', 'ASC');
}
Just added pull request #52 that fixes this. :)
I'm trying to write a test for this
But when trying to use assertBelongsToMany() I'm just getting the error:
Anyone know a way to fix it, or to test it another way? :)