public function setRoleParent(int $id, string $value): void
	{
		if ($this->isAjax()) {
			$role = $this->orm->aclRoles->getById($id);
			$role->parent = $value;
			$this->orm->persistAndFlush($role);

			$this->flashNotifier->success('default.dataSaved');
			$this['rolesList']->redrawItem($id);
		} else {
			$this->terminate();
		}
	}
public function setRoleParent(int $id, string $value): void
	{
		if ($this->isAjax()) {
			$role = $this->orm->aclRoles->getById($id);
			$role->parent = $value;
			$this->orm->persistAndFlush($role);

			$this->flashNotifier->success('default.dataSaved');
			$this['rolesList']->redrawItem($id);
		} else {
			$this->terminate();
		}
	}
public function setRoleParent ( int $ id , string $ value ) : void { if ( $ this -> isAjax ( ) ) { $ role = $ this -> orm -> aclRoles -> getById ( $ id ) ; $ role -> parent = $ value ; $ this -> orm -> persistAndFlush ( $ role ) ; $ this -> flashNotifier -> success ( 'default.dataSaved' ) ; $ this [ 'rolesList' ] -> redrawItem ( $ id ) ; } else { $ this -> terminate ( ) ; } }
Ulozi rodice role
@param int $id
@param string $value
@throws AbortException
Ulozi rodice role