-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Avoid returning null from EntityManager::getReference()
and getPartialReference()
#8920
base: 3.0.x
Are you sure you want to change the base?
Conversation
92b5ac0
to
a1a58fe
Compare
This is inconsistent from my POV, |
@beberlei but this does not do any entity lookup. Currently, null is returned when there's issue with entity hierarchy when inheritance is used and that should IMO be an error. |
53434ca
to
a4f9c16
Compare
a934970
to
05d1161
Compare
lib/Doctrine/ORM/Exception/InstanceOfTheWrongTypeEncountered.php
Outdated
Show resolved
Hide resolved
13cc39b
to
a8811af
Compare
Before more work is done here, i believe the BC break here is too big to be reasonable and i am heavily 👎 on this change |
@beberlei what about adding new methods if BC break is the issue even for the major version? |
4fd4c6d
to
a3127c5
Compare
376fe53
to
5599b3f
Compare
…tialReference()`
This bothers me for a long time, though I'm not sure the solution is viable.
Though I'd rather not assert for
notNull
every time I use the reference.