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

Allow tagging entity listeners#222

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
guilhermeblanco merged 6 commits intodoctrine:masterfromsandermarechal:tag-listener
Jan 27, 2014

Conversation

@sandermarechal
Copy link
Contributor

This allows tagging a service with an 'doctrine.orm.entity_listener'
tag. These tagged services will automatically be registered with the
entity listener resolver.

Note: The changes to the XML fixture cannot be parsed due to a bug in
the Symfony DependencyInjection component. A PR that fixes this issue
can be found atsymfony/symfony#9350. When that
PR has been merged, all tests in this commit pass.

This allows tagging a service with an 'doctrine.orm.entity_listener'tag. These tagged services will automatically be registered with theentity listener resolver.Note: The changes to the XML fixture cannot be parsed due to a bug inthe Symfony DependencyInjection component. A PR that fixes this issuecan be found atsymfony/symfony#9350. When thatPR has been merged, all tests in this commit pass.
@sandermarechal
Copy link
ContributorAuthor

I could also write an alternative to this PM. Instead of tagging services and registering them with the default Doctrine EntityListenerResolver, we could also supply a custom resolver that knows about the DIC. In that case, there would be no need to tag services, but you would specify the service ID instead of a class name in the EntityListener mapping.

Copy link
Member

Choose a reason for hiding this comment

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

This is wrong. The default entity manager can have any name. We don't enforce it being nameddefault (default is just the name we use when using the compact configuration format)

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

Fixed

@matteosister
Copy link

👍

@sandermarechal
Copy link
ContributorAuthor

I have updated the test fixture so that this does not have to wait onsymfony/symfony#9350. All tests pass now.

@robbixc
Copy link

looking forward to this feature 👍

@sandermarechal
Copy link
ContributorAuthor

@beberlei@stof Any more comments on this? Can this feature be added?

@BenjaminPaap
Copy link

👍 need this feature too

guilhermeblanco added a commit that referenced this pull requestJan 27, 2014
@guilhermeblancoguilhermeblanco merged commiteb11a7c intodoctrine:masterJan 27, 2014
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

6 participants

@sandermarechal@matteosister@robbixc@BenjaminPaap@stof@guilhermeblanco

[8]ページ先頭

©2009-2025 Movatter.jp