Browse Source

Merge branch 'develop'

master
Guillaume 4 years ago
parent
commit
7ac83e4e3a
2 changed files with 6 additions and 1 deletions
  1. +1
    -1
      ShopBundle/Model/SluggableTrait.php
  2. +5
    -0
      ShopBundle/Services/UtilsProcess.php

+ 1
- 1
ShopBundle/Model/SluggableTrait.php View File

return $this->slug; return $this->slug;
} }


public function setSlug(string $slug): self
public function setSlug(?string $slug): self
{ {
$this->slug = $slug; $this->slug = $slug;



+ 5
- 0
ShopBundle/Services/UtilsProcess.php View File

use Lc\ShopBundle\Context\ProductFamilyInterface; use Lc\ShopBundle\Context\ProductFamilyInterface;
use Lc\ShopBundle\Context\ProductFamilyUtilsInterface; use Lc\ShopBundle\Context\ProductFamilyUtilsInterface;
use Lc\ShopBundle\Context\ReminderInterface; use Lc\ShopBundle\Context\ReminderInterface;
use Lc\ShopBundle\Context\SluggableInterface;
use Lc\ShopBundle\Context\TaxRateInterface; use Lc\ShopBundle\Context\TaxRateInterface;
use Lc\ShopBundle\Context\UnitInterface; use Lc\ShopBundle\Context\UnitInterface;
use Lc\ShopBundle\Context\UserInterface; use Lc\ShopBundle\Context\UserInterface;
$this->em->persist($newAddress); $this->em->persist($newAddress);
} }


if($newEntity instanceof SluggableInterface){
$newEntity->setTitle($newEntity->getTitle().' ');
}

$this->em->persist($newEntity); $this->em->persist($newEntity);
if($flush){ if($flush){
$this->em->flush(); $this->em->flush();

Loading…
Cancel
Save