public function setState(int $id, bool $value): void
	{
		if ($this->isAjax()) {
			$user = $this->orm->users->getById($id);
			$user->active = $value;
			$this->orm->persistAndFlush($user);
			$this['userList']->redrawItem($id);
		} else {
			$this->terminate();
		}
	}
public function setState(int $id, bool $value): void
	{
		if ($this->isAjax()) {
			$user = $this->orm->users->getById($id);
			$user->active = $value;
			$this->orm->persistAndFlush($user);
			$this['userList']->redrawItem($id);
		} else {
			$this->terminate();
		}
	}
public function setState ( int $ id , bool $ value ) : void { if ( $ this -> isAjax ( ) ) { $ user = $ this -> orm -> users -> getById ( $ id ) ; $ user -> active = $ value ; $ this -> orm -> persistAndFlush ( $ user ) ; $ this [ 'userList' ] -> redrawItem ( $ id ) ; } else { $ this -> terminate ( ) ; } }
Ulozi stav uzivatele
@param int $id
@param bool $value
@throws AbortException
Ulozi stav uzivatele