/** * Get the associated Grupo object * * @param PropelPDO Optional Connection object. * @return Grupo The associated Grupo object. * @throws PropelException */ public function getGrupo(PropelPDO $con = null) { if ($this->aGrupo === null && $this->id_grupo !== null) { $c = new Criteria(GrupoPeer::DATABASE_NAME); $c->add(GrupoPeer::ID_GRUPO, $this->id_grupo); $this->aGrupo = GrupoPeer::doSelectOne($c, $con); /* The following can be used additionally to guarantee the related object contains a reference to this object. This level of coupling may, however, be undesirable since it could result in an only partially populated collection in the referenced object. $this->aGrupo->addUsuarioGrupos($this); */ } return $this->aGrupo; }