public function getStudentThesis($con = null) { include_once 'lib/model/om/BaseStudentThesisPeer.php'; if ($this->aStudentThesis === null && $this->student_thesis_id !== null) { $this->aStudentThesis = StudentThesisPeer::retrieveByPK($this->student_thesis_id, $con); } return $this->aStudentThesis; }