mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
DDC-1518: Method chaining in Setters of generated entity classes #1903
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 @doctrinebot on GitHub (Dec 2, 2011).
Originally assigned to: @beberlei on GitHub.
Jira issue originally created by user naitsirch:
Hi.
It would be nice if the set-methods of the generated entity classes would return the entity instance itself, so that method chaining is possible.
Example:
In PHP 5.4 we can do even more nicer:
If this is not wanted by everyone, the console tool could get a new argument to define if method chaining should be used or not.
Implementation of this improvement would be very nice. Thanks.