Re: [Pharo-users] Voyage: Circular references

2013-08-13 Thread Sabine Knöfel
Hi Esteban, thanks, this works fine now! You also answered my next question how to define an attribute as transient - with VOMongoTransientDescription :) Your blog posts http://smallworks.com.ar/web/blog?_k=c9RiCz1d5w-0XSbp are very helpful to start. Do you have more information/documentation

Re: [Pharo-users] Voyage: Circular references

2013-08-12 Thread Sabine Knöfel
Hi Esteban, thank you for the solution with the VOMongoToOneDescription. This works perfect for me. I have to come back to the circular references. I am not sure if this is a bug. I have the following model: Trip - Day - VehicleTrip One Trip has N Days. One Day has N VehicleTrips. The

Re: [Pharo-users] Voyage: Circular references

2013-08-05 Thread Esteban Lorenzano
Hi Sabine, I'm trying to understand your problem. As far as I see, you have: - A set of Countries - A set of Trips Why Country is transient? When you declare an attribute as *transient*, that means its value will not be persisted, then when you retrieve it again, you will have country =

Re: [Pharo-users] Voyage: Circular references

2013-07-29 Thread Esteban Lorenzano
Hi Sabine, I'm really sorry, I just went on vacations when you sent this mail :( Is this problem persisting? Did you reach a solution? Can I help you with something? Esteban On Jul 19, 2013, at 12:56 PM, Sabine Knöfel sabine.knoe...@gmail.com wrote: Hi Esteban, thanks! I think the

Re: [Pharo-users] Voyage: Circular references

2013-07-22 Thread Sabine Knöfel
:-) For me it would be very useful ;-) But a hint here in the forum would be enough for the moment to proceed. Sabine -- View this message in context: http://forum.world.st/Voyage-Circular-references-tp4691940p4699971.html Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.

Re: [Pharo-users] Voyage: Circular references

2013-07-20 Thread Stéphane Ducasse
this is a nice case for the tutorial :) Stef On Jul 19, 2013, at 12:56 PM, Sabine Knöfel sabine.knoe...@gmail.com wrote: Hi Esteban, thanks! I think the solution of Bernat will not be enough for me. I added the class methods isVoyageRoot to the root objects (like trip, country and

Re: [Pharo-users] Voyage: Circular references

2013-07-19 Thread Sabine Knöfel
Hi Esteban, yes, now the Rectangle Example works after doing the reset. But saving my model still leads to a non responding image because Voyage is trying to write json for all model stuf deep deep deep and circular. Perhaps same like:

Re: [Pharo-users] Voyage: Circular references

2013-07-19 Thread Bernat Romagosa
Hi Sabine! If you want an object to be referenced by another, and not embedded in it, you need to give that object root entity. As a root, the object will have a collection of its own, and will be referenced by other objects by id. If the object is not root, it will be embedded inside the

Re: [Pharo-users] Voyage: Circular references

2013-07-19 Thread Esteban Lorenzano
Hi Sabine, If Bernat help is not enough, I would like to have some more insight on your problem, so If you can put here a better description of your model and the problem you are having, I will have a look :) Esteban On Jul 19, 2013, at 10:42 AM, Bernat Romagosa

Re: [Pharo-users] Voyage: Circular references

2013-07-19 Thread Sabine Knöfel
Hi Esteban, thanks! I think the solution of Bernat will not be enough for me. I added the class methods isVoyageRoot to the root objects (like trip, country and so on). But I have instances which should never be persistent, e.g. the country I mentioned. The Country has currencies and expense

[Pharo-users] Voyage: Circular references

2013-07-18 Thread Sabine Knöfel
Hi, I was working for a while with Mongotalk and started with Voyage today. I run in exactly the same problem as Bernat. Image non responding. I tried the star/planet example and it worked. hmpf. When I debugged into, I recognized that I did not tell Voyage at which model bounds to stop when

[Pharo-users] Voyage: Circular references

2013-07-18 Thread Sabine Knöfel
I found this: http://smallworks.eu/web/blog/2013-06-14-voyage-the-adventure Chapter Enhancing storage But if I add the 3+1 methods to Rectangle, and save it again, the json did not change. Did I miss something? -- View this message in context:

Re: [Pharo-users] Voyage: Circular references

2013-07-18 Thread Esteban Lorenzano
Hi Sabine, Probably you do not missed anything. Probably I missed to update the voyage configuration :) can you try doing VOMongoRepository allInstancesDo: #reset. before trying again? Cheers, Esteban On Jul 18, 2013, at 6:31 PM, Sabine Knöfel sabine.knoe...@gmail.com wrote: I found

Re: [Pharo-users] Voyage: Circular references

2013-06-11 Thread Bernat Romagosa
Bump? 2013/6/6 Bernat Romagosa tibabenfortlapala...@gmail.com Hi! I'm having an issue I don't recall having had about half a year ago when trying out Voyage. In my schema, a *User* has an *instVar* referencing all the *Center*s he belongs to, and a *Center* has an *instVar* referencing

Re: [Pharo-users] Voyage: Circular references

2013-06-11 Thread Esteban Lorenzano
Hi, sorry... I has been running like hell last two weeks. I posted a reply http://stackoverflow.com/questions/17039914/how-to-persist-graphs-presenting-circular-references-in-voyage but sadly no good news... I don't know where is your error. Probably a problem in your configuration. I

Re: [Pharo-users] Voyage: Circular references

2013-06-11 Thread Bernat Romagosa
Hi Esteban! Thanks a lot, I tried your code and it's working for me, so the problem must be somewhere else. I set up a logger in VOMongoSerializer #serialize:description:using: and I can confirm it keeps jumping back and forth between two related objects, but I don't really know why... #new is

Re: [Pharo-users] Voyage: Circular references

2013-06-11 Thread Esteban Lorenzano
btw the configuration of voyage is outdated in the mongotalk driver (another thing I need to update, he) you might want to try manually updating the mongotalk packages. cheers, Esteban On Jun 11, 2013, at 1:39 PM, Bernat Romagosa tibabenfortlapala...@gmail.com wrote: Hi Esteban! Thanks a

[Pharo-users] Voyage: Circular references

2013-06-06 Thread Bernat Romagosa
Hi! I'm having an issue I don't recall having had about half a year ago when trying out Voyage. In my schema, a *User* has an *instVar* referencing all the *Center*s he belongs to, and a *Center* has an *instVar* referencing all of its *User*s, so when the Voyage serializer tries to serialize a