mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
Why method chaining is allowed by default in generated entities? #5405
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 @Kwadz on GitHub (Feb 5, 2017).
Originally assigned to: @Ocramius on GitHub.
Is there a good reason to allow method chaining by default in generated entities?
I think this feature should only be present when it is needed. I there is no reason to have it by default, I'd like to make it configurable. What do you think about that?
@Ocramius commented on GitHub (Feb 5, 2017):
@Kwadz I would rather just drop it: it's a bad practice, but it seems like many rely on it (yes, we tried dropping it before).
Closing here - possible change for 3.x, but we'd split the entity generator out anyway, so I'm closing this one as
won't fix@Kwadz commented on GitHub (Feb 5, 2017):
Sorry, I've just realized: