@@ -9,7 +9,7 @@ trait SluggableTrait | |||
{ | |||
/** | |||
* @ORM\Column(type="string", length=255) | |||
* @Gedmo\Slug(fields={"title"}, unique=true) | |||
* @Gedmo\Slug(fields={"title"}, unique=false) | |||
*/ | |||
protected $slug; | |||
@@ -11,7 +11,7 @@ use Lc\SovBundle\Model\File\FileInterface; | |||
abstract class SettingModel implements SettingInterface | |||
{ | |||
/** | |||
* @ORM\Column(type="string", length=63) | |||
* @ORM\Column(type="string", length=63, nullable=true) | |||
*/ | |||
protected $name; | |||
@@ -35,7 +35,7 @@ abstract class SettingModel implements SettingInterface | |||
return $this->name; | |||
} | |||
public function setName(string $name): self | |||
public function setName(?string $name): self | |||
{ | |||
$this->name = $name; | |||
@@ -45,7 +45,7 @@ | |||
</a> | |||
</li> | |||
<li class="nav-item"> | |||
<a href="{{ path(sov_homepage_route(), {section: section_slug_current()}) }}" class="btn btn-sm btn-block btn-outline-success" target="_blank" | |||
<a href="{{ path(sov_homepage_route(), {section: section_current_slug()}) }}" class="btn btn-sm btn-block btn-outline-success" target="_blank" | |||
rel="noreferrer"> | |||
<i class="action-icon fa fa-eye"></i> | |||
Afficher le site |