Multiple non-persisted new entities were found through the given association graph: * A new entity was found through the relationship 'AppEntityBattleEngagedArmy#fighters' that was not configured to cascade persist operations for entity: AppEntityBattleFightingUnit@1969. To solve this issue: Either explicitly call EntityManager#persist() on this unknown entity or configure cascade persist this association in the mapping for example @ManyToOne(..,cascade="persist"). If you cannot find out which entity causes the problem implement 'AppEntityBattleFightingUnit#toString()' to get a clue. * A new entity was found through the relationship 'AppEntityBattleEngagedArmy#fighters' that was not configured to cascade persist operations for entity: AppEntityBattleFightingUnit@1784. To solve this issue: Either explicitly call EntityManager#persist() on this unknown entity or configure cascade persist this association in the mapping for example @ManyToOne(..,cascade="persist"). If you cannot find out which entity causes the problem implement 'AppEntityBattleFightingUnit#toString()' to get a clue. * A new entity was found through the relationship 'AppEntityBattleEngagedArmy#fighters' that was not configured to cascade persist operations for entity: AppEntityBattleFightingUnit@1997. To solve this issue: Either explicitly call EntityManager#persist() on this unknown entity or configure cascade persist this association in the mapping for example @ManyToOne(..,cascade="persist"). If you cannot find out which entity causes the problem implement 'AppEntityBattleFightingUnit#toString()' to get a clue. * A new entity was found through the relationship 'AppEntityBattleEngagedArmy#fighters' that was not configured to cascade persist operations for entity: AppEntityBattleFightingUnit@1960. To solve this issue: Either explicitly call EntityManager#persist() on this unknown entity or configure cascade persist this association in the mapping for example @ManyToOne(..,cascade="persist"). If you cannot find out which entity causes the problem implement 'AppEntityBattleFightingUnit#toString()' to get a clue. * A new entity was found through the relationship 'AppEntityBattleEngagedArmy#fighters' that was not configured to cascade persist operations for entity: AppEntityBattleFightingUnit@1979. To solve this issue: Either explicitly call EntityManager#persist() on this unknown entity or configure cascade persist this association in the mapping for example @ManyToOne(..,cascade="persist"). If you cannot find out which entity causes the problem implement 'AppEntityBattleFightingUnit#toString()' to get a clue. * A new entity was found through the relationship 'AppEntityBattleEngagedArmy#fighters' that was not configured to cascade persist operations for entity: AppEntityBattleFightingUnit@2003. To solve this issue: Either explicitly call EntityManager#persist() on this unknown entity or configure cascade persist this association in the mapping for example @ManyToOne(..,cascade="persist"). If you cannot find out which entity causes the problem implement 'AppEntityBattleFightingUnit#toString()' to get a clue.
0 /var/www/kingdom_production/releases/84a544497426771172b3965fcc06a5dffae05f95/repo/EternalKingdom/vendor/doctrine/orm/src/UnitOfWork.php(3844): DoctrineORMORMInvalidArgumentException::newEntitiesFoundThroughRelationships()
1 /var/www/kingdom_production/releases/84a544497426771172b3965fcc06a5dffae05f95/repo/EternalKingdom/vendor/doctrine/orm/src/UnitOfWork.php(417): DoctrineORMUnitOfWork->assertThatThereAreNoUnintentionallyNonPersistedAssociations()
2 /var/www/kingdom_production/releases/84a544497426771172b3965fcc06a5dffae05f95/repo/EternalKingdom/vendor/doctrine/orm/src/EntityManager.php(403): DoctrineORMUnitOfWork->commit()
3 /var/www/kingdom_production/releases/84a544497426771172b3965fcc06a5dffae05f95/repo/EternalKingdom/src/Service/GameLogManager.php(106): DoctrineORMEntityManager->flush()
4 /var/www/kingdom_production/releases/84a544497426771172b3965fcc06a5dffae05f95/repo/EternalKingdom/src/Service/GameLogManager.php(91): AppServiceGameLogManager->finishLogTransaction()
5 /var/www/kingdom_production/releases/84a544497426771172b3965fcc06a5dffae05f95/repo/EternalKingdom/src/Service/GameLogManager.php(70): AppServiceGameLogManager->addLog()
6 /var/www/kingdom_production/releases/84a544497426771172b3965fcc06a5dffae05f95/repo/EternalKingdom/src/Service/BattleManager.php(595): AppServiceGameLogManager->addBattleLog()
7 /var/www/kingdom_production/releases/84a544497426771172b3965fcc06a5dffae05f95/repo/EternalKingdom/src/Service/BattleManager.php(505): AppServiceBattleManager->endBattle()
8 /var/www/kingdom_production/releases/84a544497426771172b3965fcc06a5dffae05f95/repo/EternalKingdom/src/Service/WorldManager.php(182): AppServiceBattleManager->refreshAllBattles()
9 /var/www/kingdom_production/releases/84a544497426771172b3965fcc06a5dffae05f95/repo/EternalKingdom/src/Controller/ManagementController.php(47): AppServiceWorldManager->tickWorld()
10 /var/www/kingdom_production/releases/84a544497426771172b3965fcc06a5dffae05f95/repo/EternalKingdom/vendor/symfony/http-kernel/HttpKernel.php(163): AppControllerManagementController->Management()
11 /var/www/kingdom_production/releases/84a544497426771172b3965fcc06a5dffae05f95/repo/EternalKingdom/vendor/symfony/http-kernel/HttpKernel.php(75): SymfonyComponentHttpKernelHttpKernel->handleRaw()
12 /var/www/kingdom_production/releases/84a544497426771172b3965fcc06a5dffae05f95/repo/EternalKingdom/vendor/symfony/http-kernel/Kernel.php(202): SymfonyComponentHttpKernelHttpKernel->handle()
13 /var/www/kingdom_production/releases/84a544497426771172b3965fcc06a5dffae05f95/repo/EternalKingdom/public/index.php(25): SymfonyComponentHttpKernelKernel->handle()
14 main