Phalcon\Translate\Adapter\Database::update PHP Method

update() public method

Update a translation for given key (No existence check!)
public update ( string $translateKey, string $message ) : boolean
$translateKey string
$message string
return boolean
    public function update($translateKey, $message)
    {
        $options = $this->options;
        return $options['db']->update($options['table'], ['value'], [$message], ['conditions' => 'key_name = ? AND language = ?', 'bind' => ['key' => $translateKey, 'lang' => $options['language']]]);
    }