private function getUpdateQuery($data, $function)
    {
        $ar = static::cyrus();
        $data = (empty($data)) ? $ar->getAttributes() : $data;
        /*
         | we will unset primary key from given array
         | This will avoid sql error (SQLSTATE[HY000]: General error: 2031)
         */
        unset($data[$ar->getKeyName()]);

        $sql = '';
        foreach ($data as $key => $value) {
            $sql .= "$key = :$key,";
        }

        $sql = rtrim($sql, ',');

        return $function.' `'.$ar->getDatabase().'`.`'.$ar->getTableName().'` SET '.' '.$sql;
    }