Through relation: Cannot relate over two habtm relations
SQL errors are raised when code like this is run:
$this->article->habtm('users'); $this->user->habtm('articles'); $this->user->habtm('groups'); $this->group->habtm('users'); $this->group->habtm('articles')->through('users'); $r = $this->group->get(); idump($r->related('articles')->get());
Leave a comment