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