This commit is contained in:
@@ -23,6 +23,8 @@ class StockRepository extends ServiceEntityRepository
|
||||
|
||||
public function save(Stock $entity, bool $flush = false): void
|
||||
{
|
||||
$entity->setUpdateTime(new \DateTime());
|
||||
|
||||
$this->getEntityManager()->persist($entity);
|
||||
|
||||
if ($flush) {
|
||||
|
||||
@@ -23,6 +23,7 @@ class WarehouseRepository extends ServiceEntityRepository
|
||||
|
||||
public function save(Warehouse $entity, bool $flush = false): void
|
||||
{
|
||||
$entity->setPrio(0);
|
||||
$this->getEntityManager()->persist($entity);
|
||||
|
||||
if ($flush) {
|
||||
|
||||
Reference in New Issue
Block a user