Move get_tables from Meta/Class into Meta/Asset. s/getTables/meta->get_tables/;

This commit is contained in:
Colin Kuskie 2010-01-04 15:34:24 -08:00
parent b72e3a1cd1
commit ce3edcf743
8 changed files with 74 additions and 38 deletions

View file

@ -21,9 +21,9 @@ use JSON;
use HTML::Packer;
use WebGUI::Definition::Asset;
attribute assetName => 'asset',
attribute tableName => 'assetData',
attribute icon => 'assets.gif',
attribute assetName => 'asset';
attribute tableName => 'assetData';
attribute icon => 'assets.gif';
property title => (
tab => "properties",
label => ['99','Asset'],
@ -288,7 +288,7 @@ around BUILDARGS => sub {
my $placeHolders = [$assetId];
# join all the tables
foreach my $table ($className->getTables) {
foreach my $table ($className->meta->get_tables) {
$sql .= ",".$table;
$where .= " and (asset.assetId=".$table.".assetId and ".$table.".revisionDate=".$revisionDate.")";
}