File tree Expand file tree Collapse file tree 3 files changed +5
-3
lines changed
Expand file tree Collapse file tree 3 files changed +5
-3
lines changed Original file line number Diff line number Diff 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 );
Original file line number Diff line number Diff 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 );
Original file line number Diff line number Diff 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 {
You can’t perform that action at this time.
0 commit comments