Exemplo n.º 1
0
 /**
  * {@inheritdoc}
  */
 public function getGroup()
 {
     $group = parent::getGroup();
     if (!empty($group) && $this->ds->getDbType() === 'pgsql') {
         foreach ($this->columnMap as $table => $columns) {
             $pk = ($table === 'objects' ? 'cvo.' : 'cvs.') . $this->getPrimaryKeyColumn($table);
             foreach ($columns as $alias => $_) {
                 if (!in_array($pk, $group, true) && in_array($alias, $group, true)) {
                     $group[] = $pk;
                     break;
                 }
             }
         }
     }
     return $group;
 }