Esempio n. 1
0
    /**
     * Deletes all associated NarroUserRolesAsRole
     * @return void
     */
    public function DeleteAllNarroUserRolesAsRole()
    {
        if (is_null($this->intRoleId)) {
            throw new QUndefinedPrimaryKeyException('Unable to call UnassociateNarroUserRoleAsRole on this unsaved NarroRole.');
        }
        // Get the Database Object for this Class
        $objDatabase = NarroRole::GetDatabase();
        // Perform the SQL Query
        $objDatabase->NonQuery('
				DELETE FROM
					`narro_user_role`
				WHERE
					`role_id` = ' . $objDatabase->SqlVariable($this->intRoleId) . '
			');
    }