function Validate() { if ($this->getDeleted() == TRUE) { //Check to make sure there are no hours using this premium policy. $udtlf = new UserDateTotalListFactory(); $udtlf->getByPremiumTimePolicyId($this->getId()); if ($udtlf->getRecordCount() > 0) { $this->Validator->isTRUE('in_use', FALSE, TTi18n::gettext('This premium policy is in use')); } } return TRUE; }