Rework get_tables to check each and every property.
This commit is contained in:
parent
006bda8dd0
commit
053b5a869e
1 changed files with 4 additions and 5 deletions
|
|
@ -76,13 +76,12 @@ Returns an array of the names of all tables in every class used by this class.
|
||||||
=cut
|
=cut
|
||||||
|
|
||||||
sub get_tables {
|
sub get_tables {
|
||||||
my $self = shift;
|
my $self = shift;
|
||||||
my @tables = ();
|
my %seen = ();
|
||||||
my %seen = ();
|
my @tables =
|
||||||
push @tables,
|
|
||||||
grep { ! $seen{$_}++ }
|
grep { ! $seen{$_}++ }
|
||||||
map { $_->tableName }
|
map { $_->tableName }
|
||||||
$self->get_all_class_metas
|
$self->get_all_properties
|
||||||
;
|
;
|
||||||
return @tables;
|
return @tables;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue