[PR #137] [MERGED] added fluent pattern to Query\Expr\Base::add* methods #7753

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

📋 Pull Request Information

Original PR: https://github.com/doctrine/orm/pull/137
Author: @docteurklein
Created: 9/27/2011
Status: Merged
Merged: 10/15/2011
Merged by: @beberlei

Base: masterHead: fluent_query_expr


📝 Commits (1)

  • b28af2e added fluent pattern to Query\Expr\Base::add* methods

📊 Changes

1 file changed (+7 additions, -3 deletions)

View changed files

📝 lib/Doctrine/ORM/Query/Expr/Base.php (+7 -3)

📄 Description

In order to return directly the return value of add method without having to create a temporary variable:

return $qb->expr()->orX()->add($qb->expr()->like('test', 'test'));


🔄 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/137 **Author:** [@docteurklein](https://github.com/docteurklein) **Created:** 9/27/2011 **Status:** ✅ Merged **Merged:** 10/15/2011 **Merged by:** [@beberlei](https://github.com/beberlei) **Base:** `master` ← **Head:** `fluent_query_expr` --- ### 📝 Commits (1) - [`b28af2e`](https://github.com/doctrine/orm/commit/b28af2e5278013eaf508a69127676e2690337e3d) added fluent pattern to Query\Expr\Base::add* methods ### 📊 Changes **1 file changed** (+7 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `lib/Doctrine/ORM/Query/Expr/Base.php` (+7 -3) </details> ### 📄 Description In order to return directly the return value of add method without having to create a temporary variable: `return $qb->expr()->orX()->add($qb->expr()->like('test', 'test'));` --- <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:41 +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#7753