fix sample code: an ugly error
fix sample code: an ugly error
- Subject: fix sample code: an ugly error
- From: OC <email@hidden>
- Date: Fri, 01 Apr 2016 19:20:33 +0200
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 <email@hidden> wrote:
> the gist is this:
>
> def theValue() {
> def val=this.cacheTo1Relationship()
> if (!val)
> for (v in this.toNRelationship())
> if (somecondition) {
> val=v
this.setCacheTo1Relationship(v)
> break
> }
> return val
> }
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden