/**
  * Declares an association between this object and a ChildSchoolYear object.
  *
  * @param  ChildSchoolYear $v
  * @return $this|\App\Models\PeriodSchoolYear The current object (for fluent API support)
  * @throws PropelException
  */
 public function setSchoolYear(ChildSchoolYear $v = null)
 {
     if ($v === null) {
         $this->setSchoolYearId(NULL);
     } else {
         $this->setSchoolYearId($v->getId());
     }
     $this->aSchoolYear = $v;
     // Add binding for other direction of this n:n relationship.
     // If this object has already been added to the ChildSchoolYear object, it will not be re-added.
     if ($v !== null) {
         $v->addPeriodSchoolYear($this);
     }
     return $this;
 }