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

Use lazy ghosts unconditionally #10969

Merged
merged 3 commits into from Oct 8, 2023

Conversation

greg0ire
Copy link
Member

@greg0ire greg0ire commented Oct 7, 2023

A nice consequence of this is that we can almost get rid of doctrine/common now. I think we might only depend on ClassUtils now.

@greg0ire greg0ire marked this pull request as ready for review October 7, 2023 11:31
@greg0ire greg0ire marked this pull request as draft October 7, 2023 11:31
* @param class-string $className
* @param array<mixed> $identifier
*
* @return InternalProxy
Copy link
Member Author

@greg0ire greg0ire Oct 7, 2023

Choose a reason for hiding this comment

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

Using a native return type here will involve modify some tests that mock calls to getProxy and make them return actual entities.

Copy link
Member

Choose a reason for hiding this comment

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

I think we should fix those tests, but that could be done in a follow-up.

@greg0ire greg0ire marked this pull request as ready for review October 7, 2023 12:18
@greg0ire
Copy link
Member Author

greg0ire commented Oct 7, 2023

Cc @nicolas-grekas

Copy link
Member

@derrabus derrabus left a comment

Choose a reason for hiding this comment

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

Please modify composer.json and make symfony/var-exporter a mandatory dependency.

lib/Doctrine/ORM/Configuration.php Show resolved Hide resolved
* @param class-string $className
* @param array<mixed> $identifier
*
* @return InternalProxy
Copy link
Member

Choose a reason for hiding this comment

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

I think we should fix those tests, but that could be done in a follow-up.

@derrabus derrabus added this to the 3.0.0 milestone Oct 7, 2023
@greg0ire
Copy link
Member Author

greg0ire commented Oct 7, 2023

I think we should fix those tests, but that could be done in a follow-up.

Yeah me too… but I haven't found a clear solution so far.

composer.json Outdated Show resolved Hide resolved
@derrabus derrabus merged commit f3b6c4b into doctrine:3.0.x Oct 8, 2023
37 checks passed
@greg0ire greg0ire deleted the lazy-ghosts-unconditionally branch October 9, 2023 05:33
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.

None yet

2 participants