[PR #624] [CLOSED] Fix getSQLTableAlias for postgre camelized table name #8466

Closed
opened 2026-01-22 16:00:03 +01:00 by admin · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/doctrine/orm/pull/624
Author: @cedriclombardot
Created: 3/22/2013
Status: Closed

Base: masterHead: patch-2


📝 Commits (2)

  • cc53441 Fix getSQLTableAlias for postgre camelized table name
  • 411ea43 Fix remove of strtolower

📊 Changes

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

View changed files

📝 lib/Doctrine/ORM/Query/SqlWalker.php (+3 -1)

📄 Description

In postgreSQL with old databases we can have camelized model names to query on we need to add quote around the table name like :

 * @ORM\Table(name="""someThing""")

But when query is built the alias taken will be " this fix will find the good alias to use enabling to query camelized tables


🔄 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/624 **Author:** [@cedriclombardot](https://github.com/cedriclombardot) **Created:** 3/22/2013 **Status:** ❌ Closed **Base:** `master` ← **Head:** `patch-2` --- ### 📝 Commits (2) - [`cc53441`](https://github.com/doctrine/orm/commit/cc534418d6c2b0a8a8ac56f10e54cce3ee0f8730) Fix getSQLTableAlias for postgre camelized table name - [`411ea43`](https://github.com/doctrine/orm/commit/411ea43573f5a04385cc457481eb638b1ba3fb0a) Fix remove of strtolower ### 📊 Changes **1 file changed** (+3 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `lib/Doctrine/ORM/Query/SqlWalker.php` (+3 -1) </details> ### 📄 Description In postgreSQL with old databases we can have camelized model names to query on we need to add quote around the table name like : ``` * @ORM\Table(name="""someThing""") ``` But when query is built the alias taken will be `"` this fix will find the good alias to use enabling to query camelized tables --- <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 16:00:03 +01:00
admin closed this issue 2026-01-22 16:00:04 +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#8466