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