[PR #501] [MERGED] Allow 0 id for Entity #8291

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

📋 Pull Request Information

Original PR: https://github.com/doctrine/orm/pull/501
Author: @jeremymarc
Created: 11/5/2012
Status: Merged
Merged: 11/5/2012
Merged by: @guilhermeblanco

Base: masterHead: patch-1


📝 Commits (2)

  • 8447744 Allow 0 id for Entity
  • 26dd533 Compare to null instead of using isset

📊 Changes

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

View changed files

📝 lib/Doctrine/ORM/AbstractQuery.php (+1 -1)

📄 Description

When using a 0 id, it's throwing InvalidArgumentException (Binding entities to query parameters only allowed for entities that have an identifier.) 


🔄 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/501 **Author:** [@jeremymarc](https://github.com/jeremymarc) **Created:** 11/5/2012 **Status:** ✅ Merged **Merged:** 11/5/2012 **Merged by:** [@guilhermeblanco](https://github.com/guilhermeblanco) **Base:** `master` ← **Head:** `patch-1` --- ### 📝 Commits (2) - [`8447744`](https://github.com/doctrine/orm/commit/84477440b6bc32515731ff4b2444362a413e5099) Allow 0 id for Entity - [`26dd533`](https://github.com/doctrine/orm/commit/26dd533662c6a40fe1f04108379c02973833c20e) Compare to null instead of using isset ### 📊 Changes **1 file changed** (+1 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `lib/Doctrine/ORM/AbstractQuery.php` (+1 -1) </details> ### 📄 Description When using a 0 id, it's throwing InvalidArgumentException (Binding entities to query parameters only allowed for entities that have an identifier.)  --- <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:59:14 +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#8291