Ejemplo n.º 1
0
 /**
  * Declares an association between this object and a ChildCart object.
  *
  * @param                  ChildCart $v
  * @return                 \Thelia\Model\Order The current object (for fluent API support)
  * @throws PropelException
  */
 public function setCart(ChildCart $v = null)
 {
     if ($v === null) {
         $this->setCartId(NULL);
     } else {
         $this->setCartId($v->getId());
     }
     $this->aCart = $v;
     // Add binding for other direction of this n:n relationship.
     // If this object has already been added to the ChildCart object, it will not be re-added.
     if ($v !== null) {
         $v->addOrder($this);
     }
     return $this;
 }