package SQL::Translator::Producer::Turnkey;
# -------------------------------------------------------------------
-# $Id: Turnkey.pm,v 1.39 2004-04-10 03:01:37 allenday Exp $
+# $Id: Turnkey.pm,v 1.40 2004-04-14 06:46:15 boconnor Exp $
# -------------------------------------------------------------------
# Copyright (C) 2002-4 SQLFairy Authors
#
use strict;
use vars qw[ $VERSION $DEBUG ];
-$VERSION = sprintf "%d.%02d", q$Revision: 1.39 $ =~ /(\d+)\.(\d+)/;
+$VERSION = sprintf "%d.%02d", q$Revision: 1.40 $ =~ /(\d+)\.(\d+)/;
$DEBUG = 1 unless defined $DEBUG;
use SQL::Translator::Schema::Constants;
$i++;
}
}
-warn Dumper($hyperedge) if $hyperedge->type eq 'many2many';
+#warn Dumper($hyperedge) if $hyperedge->type eq 'many2many';
$node_from->push_hyperedges($hyperedge);
}
}
#data
[% FOREACH value = node.value.data_fields %]
- [% IF value != 1 %]
- $field_hash->{[% value %]} = $dbobject->[% value %]();
+ [% IF value != 1 %]
+ $field_hash->{[% value.key %]} = $dbobject->[% value.key %]();
[% END %]
[% END %]
#data
[% FOREACH value = node.value.data_fields %]
[% IF value != 1 %]
- $field_hash->{[% value %]} = $object->[% value %]();
+ $field_hash->{[% value.key %]} = $object->[% value.key %]();
[% END %]
[% END %]