public function getWorktype($con = null) { include_once 'lib/model/om/BaseWorktypePeer.php'; if ($this->aWorktype === null && $this->worktype_id !== null) { $this->aWorktype = WorktypePeer::retrieveByPK($this->worktype_id, $con); } return $this->aWorktype; }