File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -263,11 +263,10 @@ private function createEntityManager(
263263 $ connection = DriverManager::getConnection (['driver ' => 'pdo_sqlite ' ] + $ driverOptions , $ config );
264264 $ entityManager = new EntityManager ($ connection , $ config );
265265
266- $ typeRegistry = DbalType::getTypeRegistry ();
267- if ($ typeRegistry ->has (PrimaryKey::DOCTRINE_TYPE_NAME )) {
268- $ typeRegistry ->override (PrimaryKey::DOCTRINE_TYPE_NAME , $ primaryKey );
266+ if (DbalType::hasType (PrimaryKey::DOCTRINE_TYPE_NAME )) {
267+ DbalType::overrideType (PrimaryKey::DOCTRINE_TYPE_NAME , $ primaryKey );
269268 } else {
270- $ typeRegistry -> register (PrimaryKey::DOCTRINE_TYPE_NAME , $ primaryKey );
269+ DbalType:: addType (PrimaryKey::DOCTRINE_TYPE_NAME , $ primaryKey );
271270 }
272271
273272 $ schemaTool = new SchemaTool ($ entityManager );
You can’t perform that action at this time.
0 commit comments