public function insert(array $fields = []) {
        $query = new InsertQuery($this->getTable());
        $query->fields(!empty($fields)? $fields : $this->getFields());
        return $this->connection->exec($query);
    }
public function insert(array $fields = []) {
        $query = new InsertQuery($this->getTable());
        $query->fields(!empty($fields)? $fields : $this->getFields());
        return $this->connection->exec($query);
    }
public function insert ( array $ fields = [ ] ) { $ query = new InsertQuery ( $ this -> getTable ( ) ) ; $ query -> fields ( ! empty ( $ fields ) ? $ fields : $ this -> getFields ( ) ) ; return $ this -> connection -> exec ( $ query ) ; }
Inserta un nuevo registro
@param array $fields
@return mixed
Inserta un nuevo registro