Jug-Montpellier / play-Jug

Jug Site in PlayFramework
http://www.jug-montpellier.org
11 stars 4 forks source link

JSON API : events.json #16

Closed chamerling closed 13 years ago

chamerling commented 13 years ago

Due to some cyclic reference in the Event model (Event->Talk->Event), getting http://localhost:9000/api/events.json raise an exception :

{
    type:   'play.exceptions.JavaExecutionException',
    message: 'circular reference error
  Offending field: event

  Offending object: preserveType: false, type: class models.Event, obj: Event Two'
}
dboissin commented 13 years ago

Fixed in https://github.com/Jug-Montpellier/play-Jug/commit/7dc06a193732f1f2bd1894109263f41ab00623c5