public function setTipolocacion(Tipolocacion $v = null) { if ($v === null) { $this->setFkTipolocacionId(0); } else { $this->setFkTipolocacionId($v->getId()); } $this->aTipolocacion = $v; if ($v !== null) { $v->addLocacion($this); } return $this; }
public static function addInstanceToPool(Tipolocacion $obj, $key = null) { if (Propel::isInstancePoolingEnabled()) { if ($key === null) { $key = (string) $obj->getId(); } self::$instances[$key] = $obj; } }