src/Model.php
public static function patch($id, $attributes)
    {
        static::invalidateCache($id);

        return \Phramework\Database\Operations\Update::update(
            $id,
            (array) $attributes,
            (
                static::getSchema() === null
                ? static::getTable()
                : [
                    'table' => static::getTable(),
                    'schema' => static::getSchema()
                ]
            ),
            static::getIdAttribute()
        );
    }
public static function patch($id, $attributes)
    {
        static::invalidateCache($id);

        return \Phramework\Database\Operations\Update::update(
            $id,
            (array) $attributes,
            (
                static::getSchema() === null
                ? static::getTable()
                : [
                    'table' => static::getTable(),
                    'schema' => static::getSchema()
                ]
            ),
            static::getIdAttribute()
        );
    }
public static function patch ( $ id , $ attributes ) { static :: invalidateCache ( $ id ) ; return \ Phramework \ Database \ Operations \ Update :: update ( $ id , ( array ) $ attributes , ( static :: getSchema ( ) === null ? static :: getTable ( ) : [ 'table' => static :: getTable ( ) , 'schema' => static :: getSchema ( ) ] ) , static :: getIdAttribute ( ) ) ; }
Update selected attributes of a database record
@param  mixed $id id attribute's value
@param  object $attributes Key-value array with fields to update
@return int Number of updated rows
@todo add query limit
Update selected attributes of a database record