Example #1
0
 /**
  * Declares an association between this object and a ChildRoutine object.
  *
  * @param  ChildRoutine $v
  * @return $this|\iuf\junia\model\PerformanceScore The current object (for fluent API support)
  * @throws PropelException
  */
 public function setRoutine(ChildRoutine $v = null)
 {
     if ($v === null) {
         $this->setRoutineId(NULL);
     } else {
         $this->setRoutineId($v->getId());
     }
     $this->aRoutine = $v;
     // Add binding for other direction of this n:n relationship.
     // If this object has already been added to the ChildRoutine object, it will not be re-added.
     if ($v !== null) {
         $v->addPerformanceScore($this);
     }
     return $this;
 }