This works properly with lazy fetching, but fails when query optimization is enabled (tested with the default queryoptimization=1).

Minimal example:

application test

entity OwnEnt {
  ownProp -> InvEnt (inverse = InvEnt.invProp)
}

entity InvEnt {
  invProp -> OwnEnt
}

init {
  OwnEnt{ownProp:=InvEnt{}}.save();
  OwnEnt{ownProp:=InvEnt{}}.save();
}

page root() {
  for(own : OwnEnt) {
    output(own.ownProp.invProp)
  }
}

The above example shows nothing, while it should show two UUIDs.

Submitted by Christoffer Gersen on 6 December 2012 at 15:21

On 6 December 2012 at 19:52 Christoffer Gersen commented:

Fixed in r5550


On 6 December 2012 at 19:52 Christoffer Gersen closed this issue.

On 7 December 2012 at 10:38 Christoffer Gersen tagged 1.3.0

On 11 December 2012 at 09:47 Christoffer Gersen tagged query-optimization

Log in to post comments