Details
-
Type:
Bug
-
Status:
Open
-
Priority:
Major
-
Resolution: Unresolved
-
Affects Version/s: 1.0.0BETA3
-
Fix Version/s: None
-
Component/s: None
-
Labels:None
-
Environment:Macosx
Description
I have a document like this:
/** @Document */
class Page
{
/** @Id */
protected $id;
/** @ReferenceMany(sort=
{"order"="asc"}) */
protected $blocks;
}
If i have well understood things, i can do:
$blocks = $dm->getRepository('Page')>find($id)>getBlocks();
blocks should now be sorted by $order property.
This behaviour doesn't seems to work (or maybe i'm missing something).
In the attachment there's a test case
i made the priority major because in my case i haven't found a workaround (i'm using nested referenceMany, a child can have children, which can have children, ..).
Activity
jules b
made changes -
| Field | Original Value | New Value |
|---|---|---|
| Description |
I have a document like this: /** * @Document */ class Page { /** * @Id */ protected $id; /** * @ReferenceMany(sort={"order"="asc"}) */ protected $blocks; } If i have well understood things, i can do: $blocks = $dm->getRepository('Page')->find($id)->getBlocks(); blocks should now be sorted by $order property. This behaviour doesn't seems to work (or i'm missing something). In the attachment there's a test case, it demonstrate that this is not a bug related to Mongo PHP extension. |
I have a document like this: /** @Document */ class Page { /** @Id */ protected $id; /** @ReferenceMany(sort={"order"="asc"}) */ protected $blocks; } If i have well understood things, i can do: $blocks = $dm->getRepository('Page')->find($id)->getBlocks(); blocks should now be sorted by $order property. This behaviour doesn't seems to work (or i'm missing something). In the attachment there's a test case, it demonstrate that this is not a bug related to Mongo PHP extension. |
jules b
made changes -
| Summary | ReferenceMany sort mapping not working | [Cursor] ReferenceMany sort mapping not working |
| Affects Version/s | 1.0.0BETA3 [ 10124 ] | |
| Environment | Macosx |
jules b
made changes -
| Description |
I have a document like this: /** @Document */ class Page { /** @Id */ protected $id; /** @ReferenceMany(sort={"order"="asc"}) */ protected $blocks; } If i have well understood things, i can do: $blocks = $dm->getRepository('Page')->find($id)->getBlocks(); blocks should now be sorted by $order property. This behaviour doesn't seems to work (or i'm missing something). In the attachment there's a test case, it demonstrate that this is not a bug related to Mongo PHP extension. |
I have a document like this: /** @Document */ class Page { /** @Id */ protected $id; /** @ReferenceMany(sort={"order"="asc"}) */ protected $blocks; } If i have well understood things, i can do: $blocks = $dm->getRepository('Page')->find($id)->getBlocks(); blocks should now be sorted by $order property. This behaviour doesn't seems to work (or maybe i'm missing something). In the attachment there's a test case i made the priority major because in my case i haven't found a workaround (i'm using nested referenceMany, a child can have children, which can have children, ..). |
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=MODM-135, expand=changesets[-21:-1].revisions[0:29],reviews}, methodType=GET}] : Received status code 503 (Service Temporarily Unavailable)