/**
  * Declares an association between this object and a Dept object.
  *
  * @param      Dept $v
  * @return     Course The current object (for fluent API support)
  * @throws     PropelException
  */
 public function setDept(Dept $v = null)
 {
     if ($v === null) {
         $this->setDeptId(NULL);
     } else {
         $this->setDeptId($v->getId());
     }
     $this->aDept = $v;
     // Add binding for other direction of this n:n relationship.
     // If this object has already been added to the Dept object, it will not be re-added.
     if ($v !== null) {
         $v->addCourse($this);
     }
     return $this;
 }