new importfiles
This commit is contained in:
@@ -21,7 +21,7 @@ class ProductRepository extends ServiceEntityRepository
|
||||
parent::__construct($registry, Product::class);
|
||||
}
|
||||
|
||||
public function save(Product $entity, bool $flush = false): void
|
||||
public function save(Product $entity, bool $flush = false): ?int
|
||||
{
|
||||
|
||||
$entity->setUpdateTime(new \DateTime());
|
||||
@@ -31,6 +31,8 @@ class ProductRepository extends ServiceEntityRepository
|
||||
if ($flush) {
|
||||
$this->getEntityManager()->flush();
|
||||
}
|
||||
|
||||
return $entity->getId();
|
||||
}
|
||||
|
||||
public function remove(Product $entity, bool $flush = false): void
|
||||
|
||||
Reference in New Issue
Block a user