src/Model.php
public static function delete($id, $additionalAttributes = null)
    {
        static::invalidateCache($id);

        return \Phramework\Database\Operations\Delete::delete(
            $id,
            (
                $additionalAttributes !== null
                ? (array) $additionalAttributes
                : []
            ),
            (
                static::getSchema() === null
                ? static::getTable()
                : [
                    'table' => static::getTable(),
                    'schema' => static::getSchema()
                ]
            ),
            static::getIdAttribute()
        );
    }
public static function delete($id, $additionalAttributes = null)
    {
        static::invalidateCache($id);

        return \Phramework\Database\Operations\Delete::delete(
            $id,
            (
                $additionalAttributes !== null
                ? (array) $additionalAttributes
                : []
            ),
            (
                static::getSchema() === null
                ? static::getTable()
                : [
                    'table' => static::getTable(),
                    'schema' => static::getSchema()
                ]
            ),
            static::getIdAttribute()
        );
    }
public static function delete ( $ id , $ additionalAttributes = null ) { static :: invalidateCache ( $ id ) ; return \ Phramework \ Database \ Operations \ Delete :: delete ( $ id , ( $ additionalAttributes !== null ? ( array ) $ additionalAttributes : [ ] ) , ( static :: getSchema ( ) === null ? static :: getTable ( ) : [ 'table' => static :: getTable ( ) , 'schema' => static :: getSchema ( ) ] ) , static :: getIdAttribute ( ) ) ; }
Delete a database record
@param  mixed $id id attribute's value
@param  object $additionalAttributes Object with additional fields
to use in WHERE clause
@return boolean Returns true on success, false on failure
Delete a database record