Php – Doctrine: How should I update my entity-saving function?
In my Symfony app, I have a function that saves a record using Doctrine: public function save(Car $car): void { $this->getEntityManager()->persist($car); $this->getEntityManager()->flush($car); } But in recent days, I get a lot of log entries like this: Calling DoctrineORMEntityManager::flush() with any…