This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
namespace App\Repository;
|
||||
|
||||
use App\Entity\Product;
|
||||
use DateTime;
|
||||
use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository;
|
||||
use Doctrine\Persistence\ManagerRegistry;
|
||||
|
||||
@@ -24,7 +25,7 @@ class ProductRepository extends ServiceEntityRepository
|
||||
public function save(Product $entity, bool $flush = false): ?int
|
||||
{
|
||||
|
||||
$entity->setUpdateTime(new \DateTime());
|
||||
$entity->setUpdateTime(new DateTime());
|
||||
|
||||
$this->getEntityManager()->persist($entity);
|
||||
|
||||
@@ -68,4 +69,4 @@ class ProductRepository extends ServiceEntityRepository
|
||||
// ->getOneOrNullResult()
|
||||
// ;
|
||||
// }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user