final public function updateColumnsByPk($pk, $data)
    {
        $this->validateShortcutData();

        return $this->db->update(static::getTableName(), $data)
                        ->whereEquals($this->getPk(), $pk)
                        ->execute();
    }
final public function updateColumnsByPk($pk, $data)
    {
        $this->validateShortcutData();

        return $this->db->update(static::getTableName(), $data)
                        ->whereEquals($this->getPk(), $pk)
                        ->execute();
    }
final public function updateColumnsByPk ( $ pk , $ data ) { $ this -> validateShortcutData ( ) ; return $ this -> db -> update ( static :: getTableName ( ) , $ data ) -> whereEquals ( $ this -> getPk ( ) , $ pk ) -> execute ( ) ; }
Updates column values by a primary key

@param string $pk
@param array $data Columns and their values to be updated
@return boolean
Updates column values by a primary key