|
|
|
|
|
|
|
|
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(); |