public function setRol(Rol $v = null) { if ($v === null) { $this->setFkRolId(0); } else { $this->setFkRolId($v->getId()); } $this->aRol = $v; if ($v !== null) { $v->addRolPermiso($this); } return $this; }