コード例 #1
0
ファイル: BaseFacturaDetalle.php プロジェクト: kcornejo/usac
 /**
  * Declares an association between this object and a Factura object.
  *
  * @param             Factura $v
  * @return FacturaDetalle The current object (for fluent API support)
  * @throws PropelException
  */
 public function setFactura(Factura $v = null)
 {
     if ($v === null) {
         $this->setFacturaId(NULL);
     } else {
         $this->setFacturaId($v->getId());
     }
     $this->aFactura = $v;
     // Add binding for other direction of this n:n relationship.
     // If this object has already been added to the Factura object, it will not be re-added.
     if ($v !== null) {
         $v->addFacturaDetalle($this);
     }
     return $this;
 }