Re: [Components] PersistentObject 1.5 design issues (summary and ideas)

2008-07-14 Thread Tobias Schlitt
Hi all! I re-wrote the design for PersistentObject 1.5 on basis of the proposed solutions in this thread. The issues are now cleared to my satisfaction. Hope the same for you. Please take a look at it please and comment here. The document can be found as usually in SVN:

Re: [Components] PersistentObject 1.5 design issues (summary and ideas)

2008-07-09 Thread Hans Melis
Hi Tobias Tobias Schlitt wrote: To summarize the daily usage of the new features in short: Using identity mapping == Change your current code $session = new ezcPersistentSession( ... ); to $innerSession = new ezcPersistentSession( ... ); $session = new

Re: [Components] PersistentObject 1.5 design issues (summary and ideas)

2008-07-09 Thread Hans Melis
Tobias Schlitt wrote: The set stuff is only needed, if you intend to fetch just a subset of related obbjects (not all). For example, if you want to fetch the top 3 sold books for each author. It's time the holiday starts... why didn't I make the link? A set is a collection and since the

[Components] PersistentObject 1.5 design issues (summary and ideas)

2008-07-08 Thread Tobias Schlitt
Hi! I thought a bit more about the open issues with the PersistentObject identity map design and try to summarize them (+ suggested solutions) in this mail for further discussions. Refetching objects == Problem --- It might be desirable to re-fetch a set of objects during a

Re: [Components] PersistentObject 1.5 design issues (summary and ideas)

2008-07-08 Thread James Pic
Hi! Tobias Schlitt wrot Refetching objects == Problem --- It might be desirable to re-fetch a set of objects during a request. A global switch in the ezcPersistentIdentityMap instance will allow this to happen. If this switch is turned on,

Re: [Components] PersistentObject 1.5 design issues (summary and ideas)

2008-07-08 Thread Tobias Schlitt
Hi! On 07/08/2008 01:02 PM Derick Rethans wrote: On Tue, 8 Jul 2008, Tobias Schlitt wrote: Refetching objects == Problem --- It might be desirable to re-fetch a set of objects during a request. A global switch in the ezcPersistentIdentityMap instance will allow this

Re: [Components] PersistentObject 1.5 design issues (summary and ideas)

2008-07-08 Thread Hans Melis
Derick Rethans wrote: 8-- snip --8 I don't quite see why you need this set stuff... it seems all so complicated. That's my problem with this new proposed stuff for PO. While it sounds nice in theory, for now it looks like an overcomplicated API. Regards, Hans -- Components mailing list

Re: [Components] PersistentObject 1.5 design issues (summary and ideas)

2008-07-08 Thread Tobias Schlitt
Hi Hans! On 07/08/2008 04:02 PM Hans Melis wrote: Derick Rethans wrote: 8-- snip --8 I don't quite see why you need this set stuff... it seems all so complicated. That's my problem with this new proposed stuff for PO. While it sounds nice in theory, for now it looks like an

Re: [Components] PersistentObject 1.5 design issues (summary and ideas)

2008-07-08 Thread Frederik Holljen
On 08/07/2008, Tobias Schlitt [EMAIL PROTECTED] wrote: Hi Hans! On 07/08/2008 04:02 PM Hans Melis wrote: Derick Rethans wrote: 8-- snip --8 I don't quite see why you need this set stuff... it seems all so complicated. That's my problem with this new proposed stuff for PO.