/** * Declares an association between this object and a TipoTarjeta object. * * @param TipoTarjeta $v * @return GastoTarjeta The current object (for fluent API support) * @throws PropelException */ public function setTipoTarjeta(TipoTarjeta $v = null) { if ($v === null) { $this->setIdTarjeta(NULL); } else { $this->setIdTarjeta($v->getId()); } $this->aTipoTarjeta = $v; // Add binding for other direction of this n:n relationship. // If this object has already been added to the TipoTarjeta object, it will not be re-added. if ($v !== null) { $v->addGastoTarjeta($this); } return $this; }