mirror of
https://github.com/doctrine/orm.git
synced 2026-03-24 06:52:09 +01:00
DDC-3983: Replace metadata factory with pre-runtime (constructor-injected) metadata map #4865
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 @doctrinebot on GitHub (Nov 7, 2015).
Originally assigned to: @guilhermeblanco on GitHub.
Jira issue originally created by user @ocramius:
ORM metadata is currently "lazy" by default:
Instead, we can:
EntityManager::**construct()or equivalent)Map<ClassName, ClassMetadata>Doing this allows us to completely externalize the mapping drivers, so that they can be maintained by third parties.
This change requires DCOM-308 to be implemented first, as that is the metadata structure that we want to reach first.
@doctrinebot commented on GitHub (Nov 7, 2015):
@doctrinebot commented on GitHub (Nov 8, 2015):
Comment created by @beberlei:
How can mapping drivers not be implemented by third parties right now by overriding the Driver interface? I don't see a benefit here.
In applications with 100 entities, loading them all every request is a clear no-go.