From: Guillermo Roditi Date: Sat, 23 Aug 2008 20:23:18 +0000 (+0000) Subject: oops X-Git-Tag: v0.08240~88^2~4^2~6 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=473441327e8b9ef1c9d70fc30fe03c3c18bf8ecd;p=dbsrgits%2FDBIx-Class.git oops --- diff --git a/lib/SQL/Translator/Parser/DBIx/Class.pm b/lib/SQL/Translator/Parser/DBIx/Class.pm index 6d15bb9..66367f8 100644 --- a/lib/SQL/Translator/Parser/DBIx/Class.pm +++ b/lib/SQL/Translator/Parser/DBIx/Class.pm @@ -239,13 +239,13 @@ sub parse { # Its possible to have multiple DBIC source using same table next if $seen_tables{$source->name}++; - my $view = $sqlt->add_view( + my $view = $schema->add_view( name => $source->name, fields => [ $source->columns ], ($source->view_definition ? $source->view_definition : ()) ); if ($source->result_class->can('sqlt_deploy_hook')) { - $source->result_class->sqlt_deploy_hook($table); + $source->result_class->sqlt_deploy_hook($view); } }