protected function checkDataColumns(array $data)
    {
        $diff = array_diff_key($data, $this->getColumnsInformation());
        if (count($diff) > 0) {
            $msg = implode(',', array_keys($diff));
            throw new Exception\ColumnNotFoundException(__METHOD__ . ": some specified columns '$msg' does not exists in table {$this->table}.");
        }
    }
protected function checkDataColumns(array $data)
    {
        $diff = array_diff_key($data, $this->getColumnsInformation());
        if (count($diff) > 0) {
            $msg = implode(',', array_keys($diff));
            throw new Exception\ColumnNotFoundException(__METHOD__ . ": some specified columns '$msg' does not exists in table {$this->table}.");
        }
    }
protected function checkDataColumns ( array $ data ) { $ diff = array_diff_key ( $ data , $ this -> getColumnsInformation ( ) ) ; if ( count ( $ diff ) > 0 ) { $ msg = implode ( ',' , array_keys ( $ diff ) ) ; throw new Exception \ ColumnNotFoundException ( __METHOD__ . ": some specified columns '$msg' does not exists in table {$this->table}." ) ; } }
Check if all columns exists in table

@param array $data
@throws Exception\ColumnNotFoundException
Check if all columns exists in table