/** * Delete JobTitleEmpStstus. Need to change the name later - mispelt * @param JobTitle $jobTitle * @returns boolean * @throws DaoException */ public function deleteJobTitleEmpStstus($jobTitle) { try { $q = Doctrine_Query::create()->delete('JobTitleEmployeeStatus')->where("jobtit_code='" . $jobTitle->getId() . "'"); $numDeleted = $q->execute(); if ($numDeleted > 0) { return true; } return false; } catch (Exception $e) { throw new DaoException($e->getMessage()); } }