[PR #130] [MERGED] Fluent entity (master) #7747

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/130
Author: @bmichotte
Created: 9/20/2011
Status: Merged
Merged: 10/15/2011
Merged by: @beberlei

Base: masterHead: master


📝 Commits (3)

  • 2b33497 Add "return $this" to generated methods to get a fluent Enttity class
  • 944f802 Correct indentation
  • 01d900d tab <-> spaces

📊 Changes

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

View changed files

📝 lib/Doctrine/ORM/Tools/EntityGenerator.php (+4 -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

same for master


🔄 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/130 **Author:** [@bmichotte](https://github.com/bmichotte) **Created:** 9/20/2011 **Status:** ✅ Merged **Merged:** 10/15/2011 **Merged by:** [@beberlei](https://github.com/beberlei) **Base:** `master` ← **Head:** `master` --- ### 📝 Commits (3) - [`2b33497`](https://github.com/doctrine/orm/commit/2b334977f536e0d4f473ed1faa748d8c37de97db) Add "return $this" to generated methods to get a fluent Enttity class - [`944f802`](https://github.com/doctrine/orm/commit/944f802d79baaf5eb16aaa86f8b7698e3fa9af17) Correct indentation - [`01d900d`](https://github.com/doctrine/orm/commit/01d900d5d7b4d60616d6c2565ab46eaffb93046b) tab <-> spaces ### 📊 Changes **1 file changed** (+4 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `lib/Doctrine/ORM/Tools/EntityGenerator.php` (+4 -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 same for master --- <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#7747