Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Move doctrine/collections to an optional dep in doctrine-bridge #30924

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

Merged
merged 1 commit into from
Apr 6, 2019

Conversation

stof
Copy link
Member

@stof stof commented Apr 6, 2019

Q A
Branch? master
Bug fix? no
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets n/a
License MIT
Doc PR

The EntityType does not need to convert the array to a collection if the project does not care about using doctrine/collections. So this can become an optional dependency.
The goal here is to reduce the dependencies of DoctrineBundle when using it in DBAL-only mode.

doctrine/persistence still brings a bunch of unwanted dependencies for a DBAL-only project, but this requires work on the Doctrine side (we discussed it with @alcaeus) as the ConnectionRegistry is part of it. Moving it to an optional dependency in the bridge will probably come in 6 months instead.
And doctrine-cache-bundle also brings some, but that's already in the work of being removed from DoctrineBundle 2.0.

The EntityType does not need to convert the array to a collection if
the project does not care about using doctrine/collections. So this
can become an optional dependency.
@fabpot
Copy link
Member

fabpot commented Apr 6, 2019

Thank you @stof.

@fabpot fabpot merged commit 07d90f9 into master Apr 6, 2019
fabpot added a commit that referenced this pull request Apr 6, 2019
…-bridge (stof)

This PR was merged into the 4.3-dev branch.

Discussion
----------

Move doctrine/collections to an optional dep in doctrine-bridge

| Q             | A
| ------------- | ---
| Branch?       | master
| Bug fix?      | no
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | n/a
| License       | MIT
| Doc PR        |

The EntityType does not need to convert the array to a collection if the project does not care about using doctrine/collections. So this can become an optional dependency.
The goal here is to reduce the dependencies of DoctrineBundle when using it in DBAL-only mode.

doctrine/persistence still brings a bunch of unwanted dependencies for a DBAL-only project, but this requires work on the Doctrine side (we discussed it with @alcaeus) as the ConnectionRegistry is part of it. Moving it to an optional dependency in the bridge will probably come in 6 months instead.
And doctrine-cache-bundle also brings some, but that's already in the work of being removed from DoctrineBundle 2.0.

Commits
-------

07d90f9 Move doctrine/collections to an optional dep in doctrine-bridge
@michaelcullum michaelcullum deleted the clean_doctrine_bridge_deps branch April 6, 2019 19:22
@nicolas-grekas nicolas-grekas added this to the next milestone Apr 7, 2019
@nicolas-grekas nicolas-grekas modified the milestones: next, 4.3 Apr 30, 2019
DavidPrevot added a commit to DavidPrevot/symfony that referenced this pull request May 12, 2019
It has already been moved in doctrine-bridge via symfony#30924.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants