protected function doValidate($columns = null) { if (!$this->alreadyInValidation) { $this->alreadyInValidation = true; $retval = null; $failureMap = array(); if ($this->aStudent !== null) { if (!$this->aStudent->validate($columns)) { $failureMap = array_merge($failureMap, $this->aStudent->getValidationFailures()); } } if ($this->aCounseling !== null) { if (!$this->aCounseling->validate($columns)) { $failureMap = array_merge($failureMap, $this->aCounseling->getValidationFailures()); } } if ($this->aEmployee !== null) { if (!$this->aEmployee->validate($columns)) { $failureMap = array_merge($failureMap, $this->aEmployee->getValidationFailures()); } } if (($retval = TempTablePeer::doValidate($this, $columns)) !== true) { $failureMap = array_merge($failureMap, $retval); } $this->alreadyInValidation = false; } return !empty($failureMap) ? $failureMap : true; }