2.7.2 Regression #6445

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

Originally created by @theUniC on GitHub (Apr 13, 2020).

Bug Report

Q A
BC Break yes
Version 2.7.2

Summary

When upgrading to 2.7.2 from 2.7.1 there's a regression with embeddable inheritance with ID fields.

Current behavior

When embeddables inherit from a parent class with an ID field, doctrine complains with the following message

No identifier/primary key specified for Entity "App\Entity\Issue". Every Entity must have an identifier/primary key.

With 2.7.1 it does not.

How to reproduce

I've set up an example code repository with example code. It consists of a single entity, with an embeddable inheriting from a base abstract class.

https://github.com/theUniC/doctrine-2.7.2-regression

The steps to reproduce are

  1. Download code
  2. composer install
  3. php bin/console doctrine:mapping:info
  4. Check that the message is shown.
  5. composer req doctrine/orm=2.7.1
  6. php bin/console doctrine:mapping:info
  7. Check that the message is not shown.

Expected behavior

The same behaviour than 2.7.1 version.

Originally created by @theUniC on GitHub (Apr 13, 2020). ### Bug Report <!-- Fill in the relevant information below to help triage your issue. --> | Q | A |------------ | ------ | BC Break | yes | Version | 2.7.2 #### Summary When upgrading to 2.7.2 from 2.7.1 there's a regression with embeddable inheritance with ID fields. #### Current behavior When embeddables inherit from a parent class with an ID field, doctrine complains with the following message No identifier/primary key specified for Entity "App\Entity\Issue". Every Entity must have an identifier/primary key. With 2.7.1 it does not. #### How to reproduce I've set up an example code repository with example code. It consists of a single entity, with an embeddable inheriting from a base abstract class. **https://github.com/theUniC/doctrine-2.7.2-regression** The steps to reproduce are 1. Download code 2. `composer install` 3. `php bin/console doctrine:mapping:info` 4. Check that the message is shown. 5. `composer req doctrine/orm=2.7.1` 6. `php bin/console doctrine:mapping:info` 7. Check that the message is not shown. #### Expected behavior The same behaviour than 2.7.1 version.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#6445