public function getInstance($con = null) { include_once 'lib/model/om/BaseInstancePeer.php'; if ($this->aInstance === null && $this->instance_id !== null) { $this->aInstance = InstancePeer::retrieveByPK($this->instance_id, $con); } return $this->aInstance; }