public function getLeaveType($con = null) { include_once 'lib/model/om/BaseLeaveTypePeer.php'; if ($this->aLeaveType === null && $this->leave_type_id !== null) { $this->aLeaveType = LeaveTypePeer::retrieveByPK($this->leave_type_id, $con); } return $this->aLeaveType; }