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
[DoctrineBridge] Require class option for DoctrineType #5289
Conversation
Without the
Additionally, omitting the
However, I'm hesitant to require the |
Looking a bit more into the |
2cc7d2f44f4c1252dd2ac9964f0f92dce96f051b should be a failing test case at the moment. |
|
The
|
@bschussek this looks weird |
One possible solution would be to duplicate the |
but this seems weird. The entity type does not have such issue, and the em is also using a normalizer in the parent DoctrineType |
I think EntityType is affected by this. See 2cc7d2f44f4c1252dd2ac9964f0f92dce96f051b |
What's the status of this PR? |
We were waiting for @bschussek to follow-up. I'll try to sit with him today if he arrives before I leave to catch my plane. |
Resubmitting against 2.1 in #5632. |
This PR was merged into the 2.1 branch. Commits ------- 3cc3c67 [DoctrineBridge] Require class option for DoctrineType Discussion ---------- [DoctrineBridge] Require class option for DoctrineType This is a resubmission of #5289 against the 2.1 branch. ``` Bug fix: yes Feature addition: no Backwards compatibility break: no Symfony2 tests pass: yes Fixes the following tickets: - Todo: - License of the code: MIT Documentation PR: - ``` --------------------------------------------------------------------------- by stof at 2012-10-01T11:28:39Z :+1:
I was updating the DocumentType class in the MongoDB bundle and realized that the
class
attribute was required but not enforced by OptionsResolver.It's been a while since I used this field, but perhaps other options should be marked as required, too. Please let me know.
/cc @beberlei @bschussek