From 9156a234b80ebe631785d4113a367dc8fb4ff74e Mon Sep 17 00:00:00 2001 From: vti Date: Wed, 31 Aug 2011 11:33:47 +0300 Subject: [PATCH] Pass schema to columns object --- lib/ObjectDB.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ObjectDB.pm b/lib/ObjectDB.pm index 96a721e..d4242a6 100644 --- a/lib/ObjectDB.pm +++ b/lib/ObjectDB.pm @@ -28,7 +28,7 @@ sub BUILD { my $columns = delete $self->{columns}; - $self->{columns} ||= ObjectDB::Columns->new; + $self->{columns} ||= ObjectDB::Columns->new(schema => $self->schema); $self->{related} ||= ObjectDB::Related->new; if ($columns) {