[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 Fri Aug 28 18:25:40 EDT 2015 using JIRA 6.4.10#64025-sha1:5b8b74079161cd76a20ab66dda52747ee6701bd6.