Browse Source

Ajustement SettingModel

develop
Guillaume 3 years ago
parent
commit
c12d675b23
3 changed files with 4 additions and 4 deletions
  1. +1
    -1
      Doctrine/Extension/SluggableTrait.php
  2. +2
    -2
      Model/Setting/SettingModel.php
  3. +1
    -1
      Resources/views/adminlte/block/navbar_header.html.twig

+ 1
- 1
Doctrine/Extension/SluggableTrait.php View File

{ {
/** /**
* @ORM\Column(type="string", length=255) * @ORM\Column(type="string", length=255)
* @Gedmo\Slug(fields={"title"}, unique=true)
* @Gedmo\Slug(fields={"title"}, unique=false)
*/ */
protected $slug; protected $slug;



+ 2
- 2
Model/Setting/SettingModel.php View File

abstract class SettingModel implements SettingInterface abstract class SettingModel implements SettingInterface
{ {
/** /**
* @ORM\Column(type="string", length=63)
* @ORM\Column(type="string", length=63, nullable=true)
*/ */
protected $name; protected $name;


return $this->name; return $this->name;
} }


public function setName(string $name): self
public function setName(?string $name): self
{ {
$this->name = $name; $this->name = $name;



+ 1
- 1
Resources/views/adminlte/block/navbar_header.html.twig View File

</a> </a>
</li> </li>
<li class="nav-item"> <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"> rel="noreferrer">
<i class="action-icon fa fa-eye"></i> <i class="action-icon fa fa-eye"></i>
Afficher le site Afficher le site

Loading…
Cancel
Save