public function getLocacion(PropelPDO $con = null) { if ($this->aLocacion === null && $this->fk_locacion_id !== null) { $c = new Criteria(LocacionPeer::DATABASE_NAME); $c->add(LocacionPeer::ID, $this->fk_locacion_id); $this->aLocacion = LocacionPeer::doSelectOne($c, $con); } return $this->aLocacion; }