src/Origins/BaseModel.php
public static function destroy($id)
    {
        if (self::confirmIdExists($id)) {
            return self::doDelete($id); 
        } else { 
            throw new Exception('Now rows found with ID '.$id.' in the database, it may have been already deleted'); 
        }
    }
public static function destroy($id)
    {
        if (self::confirmIdExists($id)) {
            return self::doDelete($id); 
        } else { 
            throw new Exception('Now rows found with ID '.$id.' in the database, it may have been already deleted'); 
        }
    }
public static function destroy ( $ id ) { if ( self :: confirmIdExists ( $ id ) ) { return self :: doDelete ( $ id ) ; } else { throw new Exception ( 'Now rows found with ID ' . $ id . ' in the database, it may have been already deleted' ) ; } }
Call doDelete function if the specified id exists

@param $id
@return string
Call doDelete function if the specified id exists