Hello John,

thanks for your help on my "negative groups" question. I used the 
manager method as you suggested and it is working fine now!
But as you might have guessed by now I ran into a new problem. (By 
the way, if I am asking too many questions just stop me. Then I will 
only ask again when I am totally lost).

I would like to copy objects from a default record/object. I tried it 
with something like:

use MyClass;
use Clone qw(clone);

my $obj = MyClass->new(nr=>1)->load;
my $obj2 = clone($obj);
$obj2->id(undef);
$obj2->price($a_changed_value);
$obj2->save;

but got an error message:
Can't call disconnect method on handle DBI::db=HASH(0x24347d8) after 
take_imp_data() at C:/Perl/site/lib/Rose/DB.pm line 623.

I found a hint in the docs that inheritance would make it easy to 
write a "copy" method for all classes but no hint how to do it. There 
must be a generic way to copy RDBOs otherwise such an inherited 
method couldn't work.
Performance is also an issue because I want to copy whole sets of 
related records at a time and I fear that a home grown solution I 
could come up with myself (copy every record field for field) would 
be quite slow.

Thanks,
Michael



-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Rose-db-object mailing list
Rose-db-object@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rose-db-object

Reply via email to