mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
Bug in AssignedGenerator.php #5296
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @janelletavares on GitHub (Oct 18, 2016).
I believe that I found a bug in the latest version of AssignedGenerator.php.
getSingleIdentifierValueis expecting an entity. When you pass a value intogetSingleIdentifierValueand not an entity, the get_class() function does not return a coherent value. A type hint, if that is possible, would help. In my case, get_class() has been returning an empty string. Eventually, the code throws aMappingException::nonExistingClassexception.Here's generally what I was doing when I reproduced it.
@Ocramius commented on GitHub (Oct 18, 2016):
@janelletavares can you please try reproducing this in a test case? See
d3f6c5ec70/tests/Doctrine/Tests/ORM/Functional/Ticketfor examples@janelletavares commented on GitHub (Oct 18, 2016):
I'm not sure when I will have time to do that, but I will keep it on my ToDo list.
@fezfez commented on GitHub (Jan 25, 2018):
big todo list
@Ocramius commented on GitHub (Jan 26, 2018):
@fezfez pretty much like everyone. Indeed, without a test we can't do much about this issue.
@fezfez commented on GitHub (Jan 26, 2018):
@Ocramius : yeah i know, i was searching docs for AssignedGenerator and i found this issue. the reponse from @janelletavares has more than one year, i just laught about how big his todo list must be.
No offense and thanks for your work ! ❤️