/** * Deletes all associated VariablesAsObjectType * @return void */ public function DeleteAllVariablesAsObjectType() { if (is_null($this->intId)) { throw new QUndefinedPrimaryKeyException('Unable to call UnassociateVariableAsObjectType on this unsaved QcodoClass.'); } // Get the Database Object for this Class $objDatabase = QcodoClass::GetDatabase(); // Perform the SQL Query $objDatabase->NonQuery(' DELETE FROM `variable` WHERE `object_type_id` = ' . $objDatabase->SqlVariable($this->intId) . ' '); }