mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
Object could not be converted to string after upgrade to 2.6.0 #5867
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 @pepakriz on GitHub (Jan 31, 2018).
Originally assigned to: @lcobucci on GitHub.
Hi,
After upgrade to 2.6.0 I got
Object could not be converted to string after upgrade to 2.6.0.Mybe because this PR: https://github.com/doctrine/doctrine2/pull/6141 . Now custom types must implement
__toStringmethod when they are used as discriminators. Is this behaviour correct?@Ocramius commented on GitHub (Jan 31, 2018):
@pepakriz discriminators didn't support
objectvalues before2.6@pepakriz commented on GitHub (Feb 1, 2018):
Maybe not officially, but it works on my code (version 2.5.14) without __toString :)
@Ocramius commented on GitHub (Feb 1, 2018):
In a reproducible way? Can you compare your code to the one in #6141 and see if there are any major differences?
@stollr commented on GitHub (Oct 25, 2018):
@Ocramius I think this issue can be closed, because there has not been any feedback.
@lcobucci commented on GitHub (Sep 20, 2019):
Closing here due to inactivity, we can reopen once we have a way to reproduce it.