diff options
Diffstat (limited to 'framework/prado-cli.php')
-rwxr-xr-x | framework/prado-cli.php | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/framework/prado-cli.php b/framework/prado-cli.php index 8ede48ab..c5cb7d58 100755 --- a/framework/prado-cli.php +++ b/framework/prado-cli.php @@ -647,7 +647,6 @@ EOD; protected function generateClass($properties, $tablename, $class) { $props = implode("\n", $properties); - $table = '$_tablename=\''.$tablename.'\''; $date = date('Y-m-d h:i:s'); return <<<EOD <?php @@ -656,7 +655,7 @@ return <<<EOD */ class $class extends TActiveRecord { - public static $table; + const TABLE='$tablename'; $props |