mirror of
https://github.com/doctrine/orm.git
synced 2026-03-24 06:52:09 +01:00
Add documentation about ClassMetadata::getAssociationMapping in 3.0 Upgrade Note #6478
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @VincentLanglet on GitHub (May 31, 2020).
Support Question
I'm trying to do a refactoring on a massive project an introducing new Interface. I would like to have these interface compatible with both Doctrine 2.x and 3.x.
I mainly work with
I saw that both
getFieldMappingsandgetAssociationMappingsare removed in ClassMetaData.When I read the Upgrade note,
https://github.com/doctrine/orm/blob/master/UPGRADE.md#bc-break-removed-methods-in-classmetadata-1
there is a mention about
ClassMetadata::getFieldMappingbut none aboutClassMetadata::getAssociationMappingorClassMetaData::ONE_TO_ONE,ClassMetaData::ONE_TO_MANY,ClassMetaData::MANY_TO_ONEandClassMetaData::MANY_TO_MANYconstants.Where can I find some explanations about the migration ?
Does supporting both doctrine 2.x and 3.x on a project will be easy if I work with these properties ?
@beberlei commented on GitHub (Jun 4, 2020):
@VincentLanglet don't waste your time on doctrine 3 support now, nothing is set in stone yet, please build against 2.* and we will work on upgrade path as we get there (far out).