mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
DDC-3925: 1 Property -> N columns and also the reverse #4803
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 (Sep 30, 2015).
Originally assigned to: @guilhermeblanco on GitHub.
Jira issue originally created by user @guilhermeblanco:
NOTE: Similar concept to Embeddable, very different solution though
Assume I have a VO (\DateTime instance) that I want to store in 3 DB columns: datetime, timezone, milliseconds.
We should be able to map a single property that stores 3 columns and whenever we set a value for the ORM property, we store these 3 fields individually.
When reading these 3 columns, we'd also do the reverse... based on 3 column values build a single property value.
Also, we could potentially support part querying on DQL (let's say WHERE milliseconds > 50 using my example)