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