Ouzo\Db\Dialect\Dialect::update PHP Method

update() public method

public update ( )
    public function update()
    {
        $attributes = DialectUtil::buildAttributesPartForUpdate($this->_query->updateAttributes);
        $table = $this->table();
        return "UPDATE {$table} SET {$attributes}";
    }

Usage Example

Ejemplo n.º 1
0
 public function update()
 {
     if ($this->_query->aliasTable) {
         throw new InvalidArgumentException("Alias in update query is not supported in sqlite3");
     }
     return parent::update();
 }