diff Lib/IMPL/ORM/Schema.pm @ 44:32d2350fccf9

ORM *Minor fixes *Working tarnsform to sql *Fixes to the sql traits
author Sergey
date Mon, 11 Jan 2010 01:42:00 +0300
parents 009aa9ca2e48
children 16ada169ca75
line wrap: on
line diff
--- a/Lib/IMPL/ORM/Schema.pm	Thu Jan 07 15:41:49 2010 +0300
+++ b/Lib/IMPL/ORM/Schema.pm	Mon Jan 11 01:42:00 2010 +0300
@@ -8,7 +8,7 @@
 require IMPL::ORM::Schema::ValueType;
 
 our %CTOR = (
-    'IMPL::DOM::Document' => sub { nodeName => 'Schema' }
+    'IMPL::DOM::Document' => sub { nodeName => 'ORMSchema' }
 );
 
 BEGIN {
@@ -44,7 +44,7 @@
 sub declareReferenceType {
     my ($this,$typeName) = @_;
     
-    my $entity = new IMPL::ORM::Schema::Entity($typeName);
+    my $entity = new IMPL::ORM::Schema::Entity($typeName->entityName);
     
     $this->mapPending->{$typeName} = $entity;