public function setDefault(): void
	{
		$repo = $this->getRepository();
		$locales = $repo->findAll();
		foreach ($locales as $locale) {
			/* @var $locale self */
			$locale->default = false;
			$repo->persist($locale);
		}
		$this->default = true;
		$repo->persist($this);
		$repo->flush();
	}
public function setDefault(): void
	{
		$repo = $this->getRepository();
		$locales = $repo->findAll();
		foreach ($locales as $locale) {
			/* @var $locale self */
			$locale->default = false;
			$repo->persist($locale);
		}
		$this->default = true;
		$repo->persist($this);
		$repo->flush();
	}
public function setDefault ( ) : void { $ repo = $ this -> getRepository ( ) ; $ locales = $ repo -> findAll ( ) ; foreach ( $ locales as $ locale ) { /* @var $locale self */ $ locale -> default = false ; $ repo -> persist ( $ locale ) ; } $ this -> default = true ; $ repo -> persist ( $ this ) ; $ repo -> flush ( ) ; }
Nastavi na vychozi
Nastavi na vychozi