aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ComponentUI/TestModel.pm
diff options
context:
space:
mode:
authorgroditi <groditi@03d0b0b2-0e1a-0410-a411-fdb2f4bd65d7>2007-09-12 19:57:03 +0000
committergroditi <groditi@03d0b0b2-0e1a-0410-a411-fdb2f4bd65d7>2007-09-12 19:57:03 +0000
commitf670cfd0d1ce4753a2c76b27cdc01e8471e4cc4a (patch)
tree4dacd893406f69701761ac2705433772005d117f /lib/ComponentUI/TestModel.pm
parent7adfd53f17f66ffe93763e944ed1d3fc52a369dc (diff)
downloadreaction-f670cfd0d1ce4753a2c76b27cdc01e8471e4cc4a.tar.gz
reaction-f670cfd0d1ce4753a2c76b27cdc01e8471e4cc4a.zip
first checkin tests fail everywhere but demo works. yay?
Diffstat (limited to 'lib/ComponentUI/TestModel.pm')
-rw-r--r--lib/ComponentUI/TestModel.pm23
1 files changed, 11 insertions, 12 deletions
diff --git a/lib/ComponentUI/TestModel.pm b/lib/ComponentUI/TestModel.pm
index 98ebb22..71c9672 100644
--- a/lib/ComponentUI/TestModel.pm
+++ b/lib/ComponentUI/TestModel.pm
@@ -1,19 +1,18 @@
package ComponentUI::TestModel;
use lib 't/lib';
-use Reaction::InterfaceModel::DBIC::SchemaClass;
+use base 'Reaction::InterfaceModel::Object';
+use Reaction::Class;
+use Reaction::InterfaceModel::Reflector::DBIC;
-class TestModel, which {
- domain_model '_testdb_schema' =>
- (
- isa => 'RTest::TestDB',
- reflect => [
- 'Foo',
- ['Bar' => 'ComponentUI::TestModel::Bars'],
- ['Baz' => 'ComponentUI::TestModel::Baz', 'bazes' ],
- ],
- );
-};
+my $reflector = Reaction::InterfaceModel::Reflector::DBIC->new;
+
+$reflector->reflect_schema
+ (
+ model_class => __PACKAGE__,
+ schema_class => 'RTest::TestDB',
+ sources => [qw/Foo Bar Baz/],
+ );
1;