Details
-
Type:
New Feature
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Duplicate
-
Affects Version/s: 2.0-ALPHA3
-
Fix Version/s: None
-
Component/s: ORM
-
Security Level: All
-
Labels:None
Description
I've come across the need for this in a scenario which is analogous to orders / products.
I've got an "order" which is linked to one or more "products". However the order (position) in which the products appear in the order is significant. Therefore I have a "position" field in the join table.
The requirement is:
- To map the order of the array to values of the "position" field in the join table upon save.
- To hydrate the array ordered by the position field when hydrating the object.
Activity
Roman S. Borschel
made changes -
| Field | Original Value | New Value |
|---|---|---|
| Fix Version/s | 2.1 [ 10022 ] | |
| Affects Version/s | 2.0-ALPHA3 [ 10029 ] | |
| Component/s | ORM [ 10012 ] |
Guilherme Blanco
made changes -
Benjamin Eberlei
made changes -
| Status | Open [ 1 ] | Resolved [ 5 ] |
| Assignee | Roman S. Borschel [ romanb ] | Benjamin Eberlei [ beberlei ] |
| Fix Version/s | 2.1 [ 10022 ] | |
| Resolution | Duplicate [ 3 ] |
Benjamin Eberlei
made changes -
Benjamin Eberlei
made changes -
| Workflow | jira [ 10523 ] | jira-feedback [ 14189 ] |
Benjamin Eberlei
made changes -
| Workflow | jira-feedback [ 14189 ] | jira-feedback2 [ 16053 ] |
Benjamin Eberlei
made changes -
| Workflow | jira-feedback2 [ 16053 ] | jira-feedback3 [ 18306 ] |
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-181, expand=changesets[-21:-1].revisions[0:29],reviews}, methodType=GET}] : Received status code 503 (Service Temporarily Unavailable)
I think is a more general improvement for persisting the order / the keys of any collection.
This is not trivial though. I dont think it can make it into 2.0 but I will schedule it for 2.1.