add authentication
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Marko
2023-11-10 16:54:07 +01:00
parent 9c2e2b6ade
commit 8554cf714d
28 changed files with 699 additions and 774 deletions

View File

@@ -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()
// ;
// }
}
}