Details
-
Type:
New Feature
-
Status:
Open
-
Priority:
Major
-
Resolution: Unresolved
-
Affects Version/s: 2.0
-
Fix Version/s: 2.x
-
Component/s: None
-
Security Level: All
-
Labels:None
Description
A Collection is like a php array, an ordered map. Hence there should be the possibility to persist this order.
Issue Links
Activity
Roman S. Borschel
made changes -
| Field | Original Value | New Value |
|---|---|---|
| Description | An Collection is like a php array, an ordered map. Hence the order should be persisted by default also. | A Collection is like a php array, an ordered map. Hence the order should be persisted by default also. |
Benjamin Eberlei
made changes -
Roman S. Borschel
made changes -
| Description | A Collection is like a php array, an ordered map. Hence the order should be persisted by default also. | A Collection is like a php array, an ordered map. Hence there should be the possibility to persist this order. |
Benjamin Eberlei
made changes -
Benjamin Eberlei
made changes -
| Fix Version/s | 2.x [ 10090 ] | |
| Fix Version/s | 2.1 [ 10022 ] |
Benjamin Eberlei
made changes -
| Workflow | jira [ 10620 ] | jira-feedback [ 13838 ] |
Benjamin Eberlei
made changes -
| Workflow | jira-feedback [ 13838 ] | jira-feedback2 [ 15702 ] |
Benjamin Eberlei
made changes -
| Workflow | jira-feedback2 [ 15702 ] | jira-feedback3 [ 17959 ] |
This list may be incomplete, as errors occurred whilst retrieving source from linked applications:
- Request to http://www.doctrine-project.org/fisheye/ failed: Error in remote call to 'FishEye 0 (http://www.doctrine-project.org/fisheye/)' (http://www.doctrine-project.org/fisheye) [AbstractRestCommand{path='/rest-service-fe/search-v1/crossRepositoryQuery', params={query=DDC-213, expand=changesets[-21:-1].revisions[0:29],reviews}, methodType=GET}] : Received status code 503 (Service Temporarily Unavailable)
Roman, I'd like to do this one as I have currently a use case for this. Do you have any idea of how to do this? What I'm wondering is whether it is possible to implement this without user intervention. (This would simply mean "store the entities as they were added"). But this would need another column in DB that we'd have to add within oneToMany / manyToMany relationships, but in this case one could save a serialized array holding "entityId => position" key / value pairs.
Afterwards, one could easily rebuild / reorder the collection via $collection->set($entity, $order[$entity->identifier]);
If you've got another thought about this, please don't hesitate to point me into the right direction!