> Fixed in SVN. Thanks for the great bug report! I used your sample code to
> create the test for this in the test suite :)
>
> -John
>
I finded another related bug: the Manager is not creating
$obj->{MODIFIED_COLUMNS()} = {}
key when loading from db, and RDBO can't save a parent object without
modifications, but with a modified sub-object.
Please find attached a patch for spot-check-12.t test :)
Best regards,
Lucian Dragus
--- t/spot-check-12.t 2006-10-27 02:50:23.000000000 +0300
+++ spot-check-12.t 2006-10-27 11:24:22.000000000 +0300
@@ -2,7 +2,7 @@
use strict;
-use Test::More tests => 1;
+use Test::More tests => 2;
require 't/test-lib.pl';
@@ -116,6 +116,13 @@
#$Rose::DB::Object::Manager::Debug = 1;
ok($c->save( cascade => 1, changes_only => 1 ), 'save cascade changes only');
+
+ ###
+ $c = Rose::DB::Object::Manager->get_objects( object_class => 'Clients', with_objects => 'address' )->[0];
+ $c->address->street('s2');
+
+ ok($c->save( cascade => 1, changes_only => 1 ), 'save cascade changes only - loaded with Manager');
+
}
END
-------------------------------------------------------------------------
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