/** * Deletes all associated NarroUserRolesAsProject * @return void */ public function DeleteAllNarroUserRolesAsProject() { if (is_null($this->intProjectId)) { throw new QUndefinedPrimaryKeyException('Unable to call UnassociateNarroUserRoleAsProject on this unsaved NarroProject.'); } // Get the Database Object for this Class $objDatabase = NarroProject::GetDatabase(); // Perform the SQL Query $objDatabase->NonQuery(' DELETE FROM `narro_user_role` WHERE `project_id` = ' . $objDatabase->SqlVariable($this->intProjectId) . ' '); }