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

Fix doctrine mapping #2420

Merged
merged 1 commit into from
Nov 20, 2023
Merged

Fix doctrine mapping #2420

merged 1 commit into from
Nov 20, 2023

Conversation

core23
Copy link
Member

@core23 core23 commented Nov 19, 2023

Subject

The recent doctrine dbal update introduced a deprecation warning

 [FAIL] The entity-class App\Entity\Media\Media mapping is invalid:

 * The field 'App\Entity\Media\Media#length' has the property type 'float' that differs from the metadata field type 'string' returned by the 'decimal' DBAL type.

 [FAIL] The entity-class Sonata\MediaBundle\Entity\BaseMedia mapping is invalid:

 * The field 'Sonata\MediaBundle\Entity\BaseMedia#length' has the property type 'float' that differs from the metadata field type 'string' returned by the 'decimal' DBAL type.

 [FAIL] The entity-class Core23\MediaBundle\Entity\BaseMedia mapping is invalid:

 * The field 'Core23\MediaBundle\Entity\BaseMedia#length' has the property type 'float' that differs from the metadata field type 'string' returned by the 'decimal' DBAL type.

I am targeting this branch, because this is a patch.

Changelog

### Fixed
- Fix doctrine mapping for media length

src/Model/Media.php Outdated Show resolved Hide resolved
src/Model/Media.php Outdated Show resolved Hide resolved
@dmitryuk
Copy link
Contributor

Please make a new release after merge

@VincentLanglet VincentLanglet merged commit 031fa45 into sonata-project:4.x Nov 20, 2023
22 of 23 checks passed
@core23 core23 deleted the fix-orm branch November 20, 2023 12:24
@dmitryuk
Copy link
Contributor

@VincentLanglet can you make a new release?

@VincentLanglet
Copy link
Member

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.

None yet

3 participants