public static function remove($id)
    {
        $s = new static();

        if (is_int($id)) {
            $where = "id = {$id}";
            self::$db->delete($s::$entity_table, $where);
        } else {
            throw new IDShouldBeNumber('Pass in an ID as the parameter, ID has to be a number', 1);
        }
    }
public static function remove($id)
    {
        $s = new static();

        if (is_int($id)) {
            $where = "id = {$id}";
            self::$db->delete($s::$entity_table, $where);
        } else {
            throw new IDShouldBeNumber('Pass in an ID as the parameter, ID has to be a number', 1);
        }
    }
public static function remove ( $ id ) { $ s = new static ( ) ; if ( is_int ( $ id ) ) { $ where = "id = {$id}" ; self :: $ db -> delete ( $ s :: $ entity_table , $ where ) ; } else { throw new IDShouldBeNumber ( 'Pass in an ID as the parameter, ID has to be a number' , 1 ) ; } }
Remove a record from the table with the specified ID
@param  in $id ID of record you want to remove
Remove a record from the table with the specified ID