Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Fix Doctrine deprecations#50524

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged

Conversation

@nicolas-grekas
Copy link
Member

@nicolas-grekasnicolas-grekas commentedJun 1, 2023
edited
Loading

QA
Branch?5.4
Bug fix?yes
New feature?no
Deprecations?no
TicketsFix#50481
LicenseMIT
Doc PR-

dmaicher reacted with rocket emoji
@carsonbotcarsonbot added this to the5.4 milestoneJun 1, 2023
@nicolas-grekasnicolas-grekasforce-pushed thedoctrine-deprec branch 4 times, most recently from58e449f tocfc74e6CompareJune 2, 2023 14:35
@nicolas-grekasnicolas-grekas merged commitb4128fd intosymfony:5.4Jun 2, 2023
@nicolas-grekasnicolas-grekas deleted the doctrine-deprec branchJune 2, 2023 17:45
$schemaManager =$this->createSchemaManager();
$comparator =$this->createComparator($schemaManager);
$schemaDiff =$this->compareSchemas($comparator,$schemaManager->createSchema(),$this->getSchema());
$schemaDiff =$this->compareSchemas($comparator,method_exists($schemaManager,'introspectSchema') ?$schemaManager->introspectSchema() :$schemaManager->createSchema(),$this->getSchema());
Copy link
Contributor

@bruschbruschJun 14, 2023
edited
Loading

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

@nicolas-grekas actually this change deletes all existing tables in the database 😬
Reverting this code-block fixes the issue.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Can you please open a new issue if you think that this change is wrong (best with a failing example application)? Comments on closed PRs are likely to get lost.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

By the way, reading the code I fail to see how this change can change the actual behaviour (the newinstrospectSchema() method callscreateSchema() internally).

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

@xabbuh yeah, I also thought so, but when I just reverted this code block (not the entire file) it continued to work as expected. But yes, I'll create a follow-up ticket with a reproducible case. Thanks so far 👍😊

xabbuh reacted with thumbs up emoji
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@xabbuhxabbuhxabbuh left review comments

@jderussejderusseAwaiting requested review from jderussejderusse is a code owner

+1 more reviewer

@bruschbruschbrusch left review comments

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Projects

None yet

Milestone

5.4

Development

Successfully merging this pull request may close these issues.

4 participants

@nicolas-grekas@brusch@xabbuh@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp