/** * Deletes an associated ParentPagerChildHistoryAsDropoffBy * @param ParentPagerChildHistory $objParentPagerChildHistory * @return void */ public function DeleteAssociatedParentPagerChildHistoryAsDropoffBy(ParentPagerChildHistory $objParentPagerChildHistory) { if (is_null($this->intId)) { throw new QUndefinedPrimaryKeyException('Unable to call UnassociateParentPagerChildHistoryAsDropoffBy on this unsaved ParentPagerIndividual.'); } if (is_null($objParentPagerChildHistory->Id)) { throw new QUndefinedPrimaryKeyException('Unable to call UnassociateParentPagerChildHistoryAsDropoffBy on this ParentPagerIndividual with an unsaved ParentPagerChildHistory.'); } // Get the Database Object for this Class $objDatabase = ParentPagerIndividual::GetDatabase(); // Perform the SQL Query $objDatabase->NonQuery(' DELETE FROM `parent_pager_child_history` WHERE `id` = ' . $objDatabase->SqlVariable($objParentPagerChildHistory->Id) . ' AND `dropoff_by_parent_pager_individual_id` = ' . $objDatabase->SqlVariable($this->intId) . ' '); // Journaling if ($objDatabase->JournalingDatabase) { $objParentPagerChildHistory->Journal('DELETE'); } }