fix sample code: an ugly error

2016-04-01 Thread OC
Darn, I should have copied the actual code, whatever unintelligible it is :( Forgot the line which encaches new object, and which actually -- far as I understand -- caused the problem: On 1. 4. 2016, at 19:17, OC wrote: > the gist is this: > > def theValue() { > def val=this.cacheTo1Relation

an ugly error

2016-04-01 Thread OC
Hi there, it so happens I cache a special object of a :N relationship in a fast :1 relationship -- the gist is this: def theValue() { def val=this.cacheTo1Relationship() if (!val) for (v in this.toNRelationship()) if (somecondition) { val=v break } return va