fixed a bunch of bugs...almost working
This commit is contained in:
parent
509c2d64ee
commit
377c49d141
4 changed files with 17 additions and 7 deletions
|
|
@ -50,7 +50,6 @@ sub import {
|
|||
}
|
||||
}
|
||||
}
|
||||
$class->_install($super, 'getTables', $class->_gen_getTables());
|
||||
|
||||
# WebGUI::Definition->import uses caller, so avoid the extra entry in the call stack
|
||||
my $next = $class->next::can;
|
||||
|
|
@ -58,6 +57,12 @@ sub import {
|
|||
goto $next;
|
||||
}
|
||||
|
||||
#-------------------------------------------------------------------
|
||||
sub _build {
|
||||
my ($class, $super, $caller, $definition) = @_;
|
||||
$class->_install($super, 'getTables', $class->_gen_getTables());
|
||||
}
|
||||
|
||||
#-------------------------------------------------------------------
|
||||
sub _gen_getTables {
|
||||
my $class = shift;
|
||||
|
|
@ -66,7 +71,7 @@ sub _gen_getTables {
|
|||
my %tables;
|
||||
foreach my $property ($self->getProperties) {
|
||||
my $definition = $self->getProperty($property);
|
||||
%tables{$definition->{tableName}} = 1;
|
||||
$tables{$definition->{tableName}} = 1;
|
||||
}
|
||||
return keys %tables;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue