[RDBO] ANNOUNCE: first email forums for QDRDBMS are active

2007-01-21 Thread Darren Duncan
Hello, This email concerns the pending first release of my QDRDBMS project, which features a complete RDBMS implemented entirely in Perl. You can see my most recent description of that project in this message on another list: http://www.nntp.perl.org/group/perl.dbi.users/30734 . As preparatio

[RDBO] Refresh object from database

2007-01-21 Thread Svilen Ivanov
Hi, I was wondering how to refresh an object (re-load from database). My obvious choice was just to call the `load' method on my object. However this doesn't update list of references to foreign objects. Consider the following simple situation: I have a user that has list of appointments (one-to-m

Re: [RDBO] Refresh object from database

2007-01-21 Thread John Siracusa
On 1/21/07 3:02 PM, Svilen Ivanov wrote: > I found 2 workarounds: > * call load(with => 'appointments') - this will eagerly re-fetch the > appointments > * undef the current instance and create new instance, like this: > $user = User->new(id => $user->id)->load; > > None of these seem elegant to m

Re: [RDBO] Refresh object from database

2007-01-21 Thread Svilen Ivanov
2007/1/21, John Siracusa <[EMAIL PROTECTED]>: > On 1/21/07 3:02 PM, Svilen Ivanov wrote: > > I found 2 workarounds: > > * call load(with => 'appointments') - this will eagerly re-fetch the > > appointments > > * undef the current instance and create new instance, like this: > > $user = User->new(id