Skip to content

Commit 17a68cb

Browse files
committed
Troubleshoot issue
1 parent 73a95a8 commit 17a68cb

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

tests/Tests/ORM/Functional/DefaultTimeExpressionTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@ public function testUsingTimeRelatedDefaultExpressionCausesAnOrmDeprecationAndNo
3838
$this->expectDeprecationWithIdentifier('https://github.com/doctrine/orm/issues/12252');
3939
$this->expectNoDeprecationWithIdentifier('https://github.com/doctrine/dbal/pull/7195');
4040

41-
$this->createSchemaForModels(LegacyTimeEntity::class);
41+
$this->_schemaTool->createSchema($this->getMetadataForModels([LegacyTimeEntity::class]));
42+
/* $this->createSchemaForModels(LegacyTimeEntity::class); */
4243
$this->_em->persist($entity = new LegacyTimeEntity());
4344
$this->_em->flush();
4445
$this->_em->find(LegacyTimeEntity::class, $entity->id);

tests/Tests/ORM/Functional/DefaultTimeExpressionXmlTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@ public function testUsingTimeRelatedDefaultExpressionCausesAnOrmDeprecationAndNo
4040
$this->expectDeprecationWithIdentifier('https://github.com/doctrine/orm/issues/12252');
4141
$this->expectNoDeprecationWithIdentifier('https://github.com/doctrine/dbal/pull/7195');
4242

43-
$this->createSchemaForModels(XmlLegacyTimeEntity::class);
43+
$this->_schemaTool->createSchema($this->getMetadataForModels([XmlLegacyTimeEntity::class]));
44+
/* $this->createSchemaForModels(XmlLegacyTimeEntity::class); */
4445
$this->_em->persist($entity = new XmlLegacyTimeEntity());
4546
$this->_em->flush();
4647
$this->_em->find(XmlLegacyTimeEntity::class, $entity->id);

0 commit comments

Comments
 (0)