[PR #129] [CLOSED] Fluent entity (branch 2.1) #7749

Open
opened 2026-01-22 15:56:40 +01:00 by admin · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/doctrine/orm/pull/129
Author: @bmichotte
Created: 9/20/2011
Status: Closed

Base: 2.1.xHead: 2.1.x


📝 Commits (6)

  • 085319c Add "return $this" to generated methods to get a fluent Enttity class
  • c7c0236 Correct indentation
  • 3de7bb5 tab <-> spaces
  • 0abf248 Merge branch 'DDC-1603' into 2.1.x
  • cd101a9 add fluent entity
  • e95fe1a Merge branch '2.1.x' of github.com:bmichotte/doctrine2 into 2.1.x

📊 Changes

1 file changed (+6 additions, -1 deletions)

View changed files

📝 lib/Doctrine/ORM/Tools/EntityGenerator.php (+6 -1)

📄 Description

This code add a "return $this" on generated set methods to get a fluent entity and allow to use

$myEntity->setFoo(true)
                ->setBar(true);

This also add a @return on comment


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/doctrine/orm/pull/129 **Author:** [@bmichotte](https://github.com/bmichotte) **Created:** 9/20/2011 **Status:** ❌ Closed **Base:** `2.1.x` ← **Head:** `2.1.x` --- ### 📝 Commits (6) - [`085319c`](https://github.com/doctrine/orm/commit/085319c74cdb33dbd679d04a85a6be90caade992) Add "return $this" to generated methods to get a fluent Enttity class - [`c7c0236`](https://github.com/doctrine/orm/commit/c7c023664d9f002686774e816d41681797596748) Correct indentation - [`3de7bb5`](https://github.com/doctrine/orm/commit/3de7bb51a936a15268bfd42afe49ff3533118b4b) tab <-> spaces - [`0abf248`](https://github.com/doctrine/orm/commit/0abf2484ce058d059609b1491cd3d23d55d0e4e6) Merge branch 'DDC-1603' into 2.1.x - [`cd101a9`](https://github.com/doctrine/orm/commit/cd101a9dd32458f4fe8145206824523a6012d48c) add fluent entity - [`e95fe1a`](https://github.com/doctrine/orm/commit/e95fe1aed1cac81cb023ea8bcc1c592bc4aef4b0) Merge branch '2.1.x' of github.com:bmichotte/doctrine2 into 2.1.x ### 📊 Changes **1 file changed** (+6 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `lib/Doctrine/ORM/Tools/EntityGenerator.php` (+6 -1) </details> ### 📄 Description This code add a "return $this" on generated set methods to get a fluent entity and allow to use ``` php $myEntity->setFoo(true) ->setBar(true); ``` This also add a @return <EntityName> on comment --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
admin added the pull-request label 2026-01-22 15:56:40 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#7749