Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use enum values from enumType in DiscriminatorColumn and check DiscriminatorMap values against it #11804

Open
wants to merge 18 commits into
base: 3.4.x
Choose a base branch
from

Conversation

whataboutpereira
Copy link

Fix for issue #11794.

Currently the values of enumType in DiscriminatorColumn are ignored which results in an error when generating a migration:

Doctrine\DBAL\Platforms\MySQL80Platform requires the values of a ENUM column to be specified.

Fixed by populating values from the enum and also prevent invalid entries in DiscriminatorMap.

HypeMC and others added 10 commits December 18, 2024 15:42
These new issues are caused by doctrine/common 3.5.0, released 2 weeks
ago.
…clared

Fix fields of transient classes being considered duplicate with `reportFieldsWhereDeclared`
Nullability is not inherited from the PHP type. The change that enabled
this feature was reversed in doctrine#8732.
Fix invalid enum value in array of enums
@whataboutpereira
Copy link
Author

I'm unsure where to go from here. It seems to me tests are failing on platforms with no native enum support.

@derrabus
Copy link
Member

derrabus commented Jan 25, 2025

I'm unsure where to go from here. It seems to me tests are failing on platforms with no native enum support.

No, the tests are failing on DBAL versions without EnumType.

@derrabus derrabus changed the base branch from 3.3.x to 3.4.x January 25, 2025 12:49
greg0ire and others added 8 commits January 26, 2025 12:01
We should be using quoteSingleIdentifier(), assuming we only ever pass
single identifiers here.

See doctrine/dbal#6590
The bug related (doctrine#11694) and fixed mapping of sql column alias to field in entity (doctrine#11783) and
invalidate cache [cache/persisted/entity|cache/persisted/collection] when sql filter changes
…exed-relation

11783 failure with indexed relation
Bumps [doctrine/.github](https://github.com/doctrine/.github) from 7.1.0 to 7.2.1.
- [Release notes](https://github.com/doctrine/.github/releases)
- [Commits](doctrine/.github@7.1.0...7.2.1)

---
updated-dependencies:
- dependency-name: doctrine/.github
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
…ions/2.20.x/doctrine/dot-github-7.2.1

Bump doctrine/.github from 7.1.0 to 7.2.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants