Ejemplo n.º 1
0
 public function testJoinNtoN()
 {
     $finder = Finder::like()->like_user->user;
     $schema = new Schemas\Infered();
     $query = $schema->generateQuery($finder);
     $this->assertEquals('SELECT like.*, like_user.*, user.* FROM like INNER JOIN like_user ON like_user.like_id = like.id INNER JOIN user ON like_user.user_id = user.id', (string) $query);
 }