Skip to content

Commit 5630107

Browse files
committed
Troubleshoot issue
1 parent 73a95a8 commit 5630107

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
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);

tests/Tests/OrmFunctionalTestCase.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -516,7 +516,7 @@ final protected function getSchemaForModels(string ...$models): Schema
516516
*
517517
* @return ClassMetadata[]
518518
*/
519-
private function getMetadataForModels(array $models): array
519+
protected function getMetadataForModels(array $models): array
520520
{
521521
return array_map(
522522
function (string $className): ClassMetadata {

0 commit comments

Comments
 (0)