public function setTipodocumento(Tipodocumento $v = null) { if ($v === null) { $this->setFkTipodocumentoId(0); } else { $this->setFkTipodocumentoId($v->getId()); } $this->aTipodocumento = $v; if ($v !== null) { $v->addAlumno($this); } return $this; }
public static function addInstanceToPool(Tipodocumento $obj, $key = null) { if (Propel::isInstancePoolingEnabled()) { if ($key === null) { $key = (string) $obj->getId(); } self::$instances[$key] = $obj; } }