[DDC-1518] Method chaining in Setters of generated entity classes Created: 02/Dec/11  Updated: 09/Jan/14  Resolved: 09/Jan/14

Status: Resolved
Project: Doctrine 2 - ORM
Component/s: Tools
Affects Version/s: None
Fix Version/s: 2.3.1
Security Level: All

Type: Improvement Priority: Minor
Reporter: Christian S. Assignee: Benjamin Eberlei
Resolution: Duplicate Votes: 0
Labels: None



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 by Christian S. [ 09/Jan/14 ]

This has already been fixed

Generated at Sat Aug 01 22:30:27 UTC 2015 using JIRA 6.2.3#6260-sha1:63ef1d6dac3f4f4d7db4c1effd405ba38ccdc558.