diff --git a/src/Command/LoadDefaultMenuCommand.php b/src/Command/LoadDefaultMenuCommand.php index 148983b..51c2be3 100644 --- a/src/Command/LoadDefaultMenuCommand.php +++ b/src/Command/LoadDefaultMenuCommand.php @@ -28,7 +28,7 @@ class LoadDefaultMenuCommand extends Command $menu->setResolution('1920x1080'); $menu->setComments('Default menu comments'); $menu->setPublicUrl('main'); - $menu->setDefault(true); + $menu->setIsDefault(true); $this->entityManager->persist($menu); $this->entityManager->flush(); diff --git a/src/Dto/Input/MenuInput.php b/src/Dto/Input/MenuInput.php index c1117f3..5a8c1c1 100644 --- a/src/Dto/Input/MenuInput.php +++ b/src/Dto/Input/MenuInput.php @@ -62,7 +62,7 @@ final class MenuInput $menu->setResolution($this->resolution); $menu->setPublicUrl($this->publicUrl); $menu->setPrivateUrl($this->privateUrl); - $menu->setDefault($this->isDefault); + $menu->setIsDefault($this->isDefault); return $menu; } diff --git a/src/Entity/Menu.php b/src/Entity/Menu.php index ef43159..cd89b80 100644 --- a/src/Entity/Menu.php +++ b/src/Entity/Menu.php @@ -85,7 +85,7 @@ class Menu extends AbstractEntity return $this->isDefault; } - public function setDefault(bool $isDefault): static + public function setIsDefault(bool $isDefault): static { $this->isDefault = $isDefault; diff --git a/src/Factory/MenuFactory.php b/src/Factory/MenuFactory.php index 6b38f41..975ca8a 100644 --- a/src/Factory/MenuFactory.php +++ b/src/Factory/MenuFactory.php @@ -33,6 +33,7 @@ final class MenuFactory extends ModelFactory 'createdAt' => self::faker()->dateTime(), 'name' => self::faker()->text(255), 'resolution' => self::faker()->text(255), + 'isDefault' => self::faker()->boolean(), 'updatedAt' => self::faker()->dateTime(), ]; } diff --git a/src/Service/Utils/GetPartitionCodeService.php b/src/Service/Utils/GetPartitionCodeService.php new file mode 100644 index 0000000..9933c29 --- /dev/null +++ b/src/Service/Utils/GetPartitionCodeService.php @@ -0,0 +1,8 @@ +