/** * Declares an association between this object and a School object. * * @param School $v * @return Campus The current object (for fluent API support) * @throws PropelException */ public function setSchool(School $v = null) { // aggregate_column_relation behavior if (null !== $this->aSchool && $v !== $this->aSchool) { $this->oldSchool = $this->aSchool; } if ($v === null) { $this->setSchoolId(NULL); } else { $this->setSchoolId($v->getId()); } $this->aSchool = $v; // Add binding for other direction of this n:n relationship. // If this object has already been added to the School object, it will not be re-added. if ($v !== null) { $v->addCampus($this); } return $this; }