Skip to content


DDC-1518: Method chaining in Setters of generated entity classes #2149

doctrinebot opened this Issue · 2 comments

2 participants


Jira issue originally created by user naitsirch:

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.

$user = new User();

In PHP 5.4 we can do even more nicer:

$user = new User()

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.


Comment created by naitsirch:

This has already been fixed


Issue was closed with resolution "Duplicate"

@beberlei beberlei was assigned by doctrinebot
@doctrinebot doctrinebot added this to the 2.3.1 milestone
@doctrinebot doctrinebot closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.