diff options
author | Remi Collet <remi@remirepo.net> | 2021-03-11 14:57:16 +0100 |
---|---|---|
committer | Remi Collet <remi@remirepo.net> | 2021-03-11 14:57:16 +0100 |
commit | 4e30cd7f3ae736e83a5e2a4a27460388ed1e7da0 (patch) | |
tree | 9eb568993f650e357365ec0d2d8a52aef0f1626c | |
parent | df53122381133f9c171c991e85421f7ebdd165cb (diff) |
better fix
-rw-r--r-- | php-bartlett-php-compatinfo-db-3-rpm.patch | 19 |
1 files changed, 14 insertions, 5 deletions
diff --git a/php-bartlett-php-compatinfo-db-3-rpm.patch b/php-bartlett-php-compatinfo-db-3-rpm.patch index 02033e7..9806619 100644 --- a/php-bartlett-php-compatinfo-db-3-rpm.patch +++ b/php-bartlett-php-compatinfo-db-3-rpm.patch @@ -126,15 +126,24 @@ diff -up ./tests/Reference/GenericTest.php.rpm ./tests/Reference/GenericTest.php self::$optionalreleases = []; -diff -up ./src/Infrastructure/Persistence/Doctrine/EntityManagerFactory.php.foo ./src/Infrastructure/Persistence/Doctrine/EntityManagerFactory.php ---- ./src/Infrastructure/Persistence/Doctrine/EntityManagerFactory.php.foo 2021-03-11 14:07:50.842278889 +0100 -+++ ./src/Infrastructure/Persistence/Doctrine/EntityManagerFactory.php 2021-03-11 14:07:53.649268435 +0100 -@@ -28,7 +28,7 @@ final class EntityManagerFactory +diff --git a/src/Infrastructure/Persistence/Doctrine/EntityManagerFactory.php b/src/Infrastructure/Persistence/Doctrine/EntityManagerFactory.php +index 3bf905d..850956c 100644 +--- a/src/Infrastructure/Persistence/Doctrine/EntityManagerFactory.php ++++ b/src/Infrastructure/Persistence/Doctrine/EntityManagerFactory.php +@@ -3,6 +3,7 @@ + namespace Bartlett\CompatInfoDb\Infrastructure\Persistence\Doctrine; + + use Doctrine\Common\Cache\Cache; ++use Doctrine\Common\Proxy\AbstractProxyFactory; + use Doctrine\ORM\EntityManager; + use Doctrine\ORM\EntityManagerInterface; + use Doctrine\ORM\ORMException; +@@ -28,7 +29,7 @@ final class EntityManagerFactory public static function create(array $connection, Cache $cache = null): EntityManagerInterface { $paths = [implode(DIRECTORY_SEPARATOR, [__DIR__, 'Entity'])]; - $isDevMode = false; -+ $isDevMode = true; ++ $isDevMode = AbstractProxyFactory::AUTOGENERATE_FILE_NOT_EXISTS; $proxyDir = null; $config = Setup::createAnnotationMetadataConfiguration($paths, $isDevMode, $proxyDir, $cache); |