Details
-
Type:
New Feature
-
Status:
Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Labels:None
Description
we should have an annotation to have multivalue properties be hashmaps, that is arrays with custom keys that get preserved. there are 3 options:
- two multivalue fields with keys and values respectively. see i.e. https://github.com/symfony-cmf/symfony-cmf/pull/140 (another workaround can be to use the @PostLoad and @PreUpdate hooks to split/merge the arrays)
- serialize the array into a string field
- child nodes (performance penalty). they would need to be in a special namespace to be identifyable and have a special format. a node for key-value is a lot. if you want a document with a specific name, you should use child documents directly, not a hashmap with document entry.
Issue Links
- is referenced by
-
PHPCR-43
Custom data type
-
Activity
David Buchmann
made changes -
| Field | Original Value | New Value |
|---|---|---|
| Description |
we should have an annotation to have multivalue properties be hashmaps, that is arrays with custom keys that get preserved. there are 3 options: * two multivalue fields with keys and values respectively. see i.e. https://github.com/symfony-cmf/symfony-cmf/pull/140 * serialize the array into a string field * child nodes (performance penalty). they would need to be in a special namespace to be identifyable and have a special format. a node for key-value is a lot. if you want a document with a specific name, you should use child documents directly, not a hashmap with document entry. |
we should have an annotation to have multivalue properties be hashmaps, that is arrays with custom keys that get preserved. there are 3 options: * two multivalue fields with keys and values respectively. see i.e. https://github.com/symfony-cmf/symfony-cmf/pull/140 (another workaround can be to use the @PostLoad and @PreUpdate hooks to split/merge the arrays) * serialize the array into a string field * child nodes (performance penalty). they would need to be in a special namespace to be identifyable and have a special format. a node for key-value is a lot. if you want a document with a specific name, you should use child documents directly, not a hashmap with document entry. |
Lukas Kahwe
made changes -
Lukas Kahwe
made changes -
| Priority | Major [ 3 ] | Minor [ 4 ] |
Lukas Kahwe
made changes -
| Status | Open [ 1 ] | Resolved [ 5 ] |
| Resolution | Fixed [ 1 ] |
Lukas Kahwe
made changes -
| Status | Resolved [ 5 ] | Closed [ 6 ] |