application init block creates duplicates
init{ var rl := LabResearchCategory{ name := "Routine Lab" number := 1 }; rl.save(); LabResearch{ name := "T.W.B.C." category := rl }.save(); LabResearch{ name := "RBS" category := rl }.save(); } entity LabResearch{ name :: String (searchable) category -> LabResearchCategory (inverse=LabResearchCategory.research) } entity LabResearchCategory{ name :: String research -> Set<LabResearch> number :: Int }
workaround:
Submitted by Danny Groenewegen on 14 October 2011 at 12:46rl.research.add(LabResearch{ name := "T.W.B.C." }); rl.research.add(LabResearch{ name := "RBS" });
Issue Log
On 14 October 2011 at 12:46 Danny Groenewegen tagged 1.2.9
On 24 February 2012 at 17:02 Danny Groenewegen tagged 1.3.0
On 24 February 2012 at 17:02 Danny Groenewegen removed tag 1.2.9
On 24 February 2012 at 17:02 Danny Groenewegen tagged 1.3.0
On 15 January 2013 at 14:36 Danny Groenewegen tagged confirmed
On 15 January 2013 at 14:36 Danny Groenewegen removed tag 1.3.0
Log in to post comments