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

Doctrine\ORM\Mapping\ClassMetadata::getFieldMapping() will return an object on ORM 3 instead of an array #2765

Merged
merged 1 commit into from
Feb 13, 2024

Conversation

mbabker
Copy link
Contributor

@mbabker mbabker commented Feb 12, 2024

Ref: #2708

Cherry-picks out changes related to moving from an array to the Doctrine\ORM\Mapping\FieldMapping in ORM 3.0.

The compat issues are baselined into the PHPStan config for now since we know the class doesn't exist on 2.18 (which is what SA is running against) and the entire point of this diff is to be a compat layer.

Copy link

codecov bot commented Feb 12, 2024

Codecov Report

Attention: 8 lines in your changes are missing coverage. Please review.

Comparison is base (0632ab1) 78.75% compared to head (141eec3) 78.91%.
Report is 5 commits behind head on main.

Files Patch % Lines
src/SoftDeleteable/Mapping/Event/Adapter/ODM.php 40.00% 3 Missing ⚠️
src/Timestampable/Mapping/Event/Adapter/ODM.php 40.00% 3 Missing ⚠️
src/SoftDeleteable/Mapping/Event/Adapter/ORM.php 85.71% 1 Missing ⚠️
src/Timestampable/Mapping/Event/Adapter/ORM.php 85.71% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2765      +/-   ##
==========================================
+ Coverage   78.75%   78.91%   +0.16%     
==========================================
  Files         163      163              
  Lines        8593     8502      -91     
==========================================
- Hits         6767     6709      -58     
+ Misses       1826     1793      -33     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@franmomu franmomu merged commit f5b6385 into doctrine-extensions:main Feb 13, 2024
17 of 18 checks passed
@franmomu
Copy link
Collaborator

thanks @mbabker!

@mbabker mbabker deleted the orm-3-mapping branch February 13, 2024 14:52
This was referenced Apr 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants