refs #1288. Menu improvements. Fixed test
testing/ogcore-api/pipeline/head There was a failure building this commit
Details
testing/ogcore-api/pipeline/head There was a failure building this commit
Details
parent
4efa843445
commit
2b8ea31599
|
@ -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();
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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(),
|
||||
];
|
||||
}
|
||||
|
|
|
@ -0,0 +1,8 @@
|
|||
<?php
|
||||
|
||||
namespace App\Service\Utils;
|
||||
|
||||
class GetPartitionCode
|
||||
{
|
||||
|
||||
}
|
Loading…
Reference in New Issue