php mvc sistem de group by kullanıyorum fakat sadece her veriden 1 tane gösteriyor diğerlerini göstermiyor.
model.php sorgu kodu
return $this->select('*')
                    ->from('desc')
                    ->where('object_id=?', $id)
->groupBy('language')
->fetchAll();
database.php fonksiyon olduğu kod

fetchAll fonksiyonu
public function fetchAll($table = null)
{
   if ($table)
{
       $this->table($table);
   }
   $sql = $this->fetchStatement();
   $query = $this->query($sql, $this->bindings);
   $results = $query->fetchAll();
   $this->rows = $query->rowCount();
   $this->reset();
   return $results;
}
Group By Fonksiyonu
public function groupBy(...$arguments)
{    $this->groupBy = $arguments; 
   return $this;
}
genel seçme işlemi

private function fetchStatement(){  
 $sql = 'SELECT ';
   if ($this->selects)
{
       $sql .= implode(',' , $this->selects);
   } else {
       $sql .= '*';
   }
    $sql .= ' FROM ' . $this->table . ' ';
   if ($this->joins) {
       $sql .= implode(' ' , $this->joins);
   }
    if ($this->wheres) {
       $sql .= ' WHERE ' . implode(' ', $this->wheres) . ' ';
    }
    if ($this->havings) {
       $sql .= ' HAVING ' . implode(' ', $this->havings) . ' ';
   }
    if ($this->orerBy)
{
       $sql .= ' ORDER BY ' . implode(' ' , $this->orerBy);
    }
    if ($this->limit)
 {
        $sql .= ' LIMIT ' . $this->limit;
    }
    if ($this->offset)
{
        $sql .= ' OFFSET ' . $this->offset;
    }
                                              if ($this->groupBy)
 {
       $sql .= ' GROUP BY ' . implode(' ' , $this->groupBy);
   }    return $sql;
}