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

DCOM-308: Create a Mapping Component #622

Open
doctrinebot opened this issue Nov 7, 2015 · 1 comment
Open

DCOM-308: Create a Mapping Component #622

doctrinebot opened this issue Nov 7, 2015 · 1 comment
Assignees

Comments

@doctrinebot
Copy link

Jira issue originally created by user @Ocramius:

All of the ORM/ODM projects currently rely on bi-directional mapping of:

  • one column (persistence layer) <-> one object property
  • one column (persistence layer) <-> one embeddable property
  • multiple columns (persistence layer) <-> one embeddable property
  • multiple columns (persistence layer) <-> one object property
  • one column (persistence layer) <-> multiple property
  • one column (persistence layer) <-> multiple embeddable properties
  • one column (persistence layer) <-> an association
  • multiple columns (persistence layer) <-> an association
    ... and more

Hibernate ORM seems to abstract this logic with a Property and a Column abstractions, each being a visitable DSL ( accept($value, $orm) , or similar).

This sort of DSL would be:

  • a good replacement for DBAL types
  • a good embeddable hacks
  • a good replacement for association hydration logic
  • a good replacement for identifier mapping

We could need a mapping component that allows mapping any map-alike data-structure to any php object graph.

@doctrinebot doctrinebot added this to the 3.0 milestone Dec 6, 2015
@alcaeus alcaeus removed this from the next milestone May 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants