/**
  * Declares an association between this object and a ChildInstance object.
  *
  * @param  ChildInstance $v
  * @return $this|\Jalle19\StatusManager\Database\Input The current object (for fluent API support)
  * @throws PropelException
  */
 public function setInstance(ChildInstance $v = null)
 {
     if ($v === null) {
         $this->setInstanceName(NULL);
     } else {
         $this->setInstanceName($v->getName());
     }
     $this->aInstance = $v;
     // Add binding for other direction of this n:n relationship.
     // If this object has already been added to the ChildInstance object, it will not be re-added.
     if ($v !== null) {
         $v->addInput($this);
     }
     return $this;
 }