Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deprecate NOTIFY tracking policy #2434

Merged
merged 1 commit into from
May 3, 2022

Conversation

malarzm
Copy link
Member

@malarzm malarzm commented Apr 27, 2022

Closes #2424

@malarzm malarzm added the Task label Apr 27, 2022
@malarzm malarzm added this to the 2.4.0 milestone Apr 27, 2022
@malarzm malarzm changed the base branch from 2.3.x to 2.4.x April 27, 2022 21:23
@malarzm malarzm force-pushed the deprecate-notify-tracking-policy branch 2 times, most recently from f2d8c19 to 86eb899 Compare April 27, 2022 21:39
@@ -207,6 +208,15 @@ protected function doLoadMetadata($class, $parent, $rootEntityFound, array $nonS

$eventArgs = new LoadClassMetadataEventArgs($class, $this->dm);
$this->evm->dispatchEvent(Events::loadClassMetadata, $eventArgs);

if ($class->isChangeTrackingNotify()) {
Copy link
Contributor

Choose a reason for hiding this comment

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

the CS build wants to invert the condition to use early exit, but in this case the code is more readable the way it is

Copy link
Member Author

Choose a reason for hiding this comment

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

I've decided to ignore the error. Offending lines will be gone eventually and so will be the suppression. Is this OK?

@malarzm malarzm force-pushed the deprecate-notify-tracking-policy branch from 86eb899 to 6fd90ed Compare May 2, 2022 20:06
@malarzm malarzm requested a review from franmomu May 2, 2022 20:08
@malarzm malarzm merged commit d122d37 into doctrine:2.4.x May 3, 2022
@malarzm malarzm deleted the deprecate-notify-tracking-policy branch May 3, 2022 10:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Deprecate NOTIFY change tracking policy
2 participants