public function setPais(Pais $v = null) { if ($v === null) { $this->setFkPaisId(0); } else { $this->setFkPaisId($v->getId()); } $this->aPais = $v; if ($v !== null) { $v->addProvincia($this); } return $this; }