[PR #6412] "Notice: Undefined offset: 0" when there is no ID Column defined #9972

Open
opened 2026-01-22 16:06:02 +01:00 by admin · 0 comments
Owner

Original Pull Request: https://github.com/doctrine/orm/pull/6412

State: closed
Merged: No


When you forget about defining the ID/PK Column, then this ugly Notice appear.

This PR is not ready for merge, but shows where the problem exist.

Could you fix this or tell me the way this Pull Request would be acceptable? Thanks.

How to reproduce?
Remove ORM\Id annotation, then try to regenerate entities.

**Original Pull Request:** https://github.com/doctrine/orm/pull/6412 **State:** closed **Merged:** No --- When you forget about defining the ID/PK Column, then this ugly Notice appear. This PR is not ready for merge, but shows where the problem exist. Could you fix this or tell me the way this Pull Request would be acceptable? Thanks. How to reproduce? Remove ORM\Id annotation, then try to regenerate entities.
admin added the pull-request label 2026-01-22 16:06:02 +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#9972