/**
     * Deletes all associated AuditsAsModifiedBy
     * @return void
     */
    public function DeleteAllAuditsAsModifiedBy()
    {
        if (is_null($this->intUserAccountId)) {
            throw new QUndefinedPrimaryKeyException('Unable to call UnassociateAuditAsModifiedBy on this unsaved UserAccount.');
        }
        // Get the Database Object for this Class
        $objDatabase = UserAccount::GetDatabase();
        // Journaling
        if ($objDatabase->JournalingDatabase) {
            foreach (Audit::LoadArrayByModifiedBy($this->intUserAccountId) as $objAudit) {
                $objAudit->Journal('DELETE');
            }
        }
        // Perform the SQL Query
        $objDatabase->NonQuery('
				DELETE FROM
					`audit`
				WHERE
					`modified_by` = ' . $objDatabase->SqlVariable($this->intUserAccountId) . '
			');
    }
 /**
  * Gets all associated AuditsAsModifiedBy as an array of Audit objects
  * @param QQClause[] $objOptionalClauses additional optional QQClause objects for this query
  * @return Audit[]
  */
 public function GetAuditAsModifiedByArray($objOptionalClauses = null)
 {
     if (is_null($this->intUserAccountId)) {
         return array();
     }
     try {
         return Audit::LoadArrayByModifiedBy($this->intUserAccountId, $objOptionalClauses);
     } catch (QCallerException $objExc) {
         $objExc->IncrementOffset();
         throw $objExc;
     }
 }