Grails org.hibernate.AssertionFailure -


i have big problem:

private void sortcompetitiontable(round round) {                 // sort table entries , set table ranks           def round_ = round.get(round.id)         def telist = competitiontableentry.findall("from competitiontableentry round=:round order tablerank asc", [round:round_], [cache:true])            telist.sort { a, b ->             def compareresult = a.points.compareto(b.points)  * -1             if (compareresult == 0)                 compareresult = (a.goalsshot-a.goalsreceived).compareto(b.goalsshot-b.goalsreceived) * -1             if (compareresult == 0)                 compareresult = a.goalsshot.compareto(b.goalsshot) * -1             if (compareresult == 0)                 compareresult = a.team.tostring().compareto(b.team.tostring())             return compareresult         }      } 

and problem ist here:

def telist = competitiontableentry.findall("from competitiontableentry round=:round order tablerank asc", [round:round_], [cache:true]) 

i error:

org.hibernate.assertionfailure: collection [at.ligaportal.user.fanof] not processed flush()

what problem , never need collect [at.ligaportal.user.fanof].

pls me!

fix: fix problem with:

game.withnewsession {  } 

thank you


Comments

Popular posts from this blog

Change php variable from jquery value using ajax (same page) -

Pull out data related to my apps from Android Play Store and iOS App Store -

How can I fetch data from a web server in an android application? -