[PR #277] [CLOSED] Update lib/Doctrine/ORM/Query/AST/GeneralCaseExpression.php #7953

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

📋 Pull Request Information

Original PR: https://github.com/doctrine/orm/pull/277
Author: @medinadato
Created: 2/10/2012
Status: Closed

Base: masterHead: patch-1


📝 Commits (1)

  • cff2675 Update lib/Doctrine/ORM/Query/AST/GeneralCaseExpression.php

📊 Changes

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

View changed files

📝 lib/Doctrine/ORM/Query/AST/GeneralCaseExpression.php (+1 -1)

📄 Description

Changed to make the CASE EXPRESSION uses strings into DQL's.

e.g.

$source = $this->em->createQueryBuilder()
    ->select('m')
            ->addSelect("CASE WHEN (date >= newDate) THEN 'Active' ELSE 'Inactive' END status")
    ->from('sys:Mask', 'm')
    ->orderBy('status', 'ASC');

🔄 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/277 **Author:** [@medinadato](https://github.com/medinadato) **Created:** 2/10/2012 **Status:** ❌ Closed **Base:** `master` ← **Head:** `patch-1` --- ### 📝 Commits (1) - [`cff2675`](https://github.com/doctrine/orm/commit/cff267505e95779ca5946c9d91744c2ceadd5df2) Update lib/Doctrine/ORM/Query/AST/GeneralCaseExpression.php ### 📊 Changes **1 file changed** (+1 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `lib/Doctrine/ORM/Query/AST/GeneralCaseExpression.php` (+1 -1) </details> ### 📄 Description Changed to make the CASE EXPRESSION uses strings into DQL's. e.g. ``` $source = $this->em->createQueryBuilder() ->select('m') ->addSelect("CASE WHEN (date >= newDate) THEN 'Active' ELSE 'Inactive' END status") ->from('sys:Mask', 'm') ->orderBy('status', 'ASC'); ``` --- <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:57:42 +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#7953