summaryrefslogtreecommitdiff
path: root/framework/prado-cli.php
diff options
context:
space:
mode:
authorxue <>2007-03-06 20:40:51 +0000
committerxue <>2007-03-06 20:40:51 +0000
commit8a674fb83fa2dd80bc653745e03b24450a9cf68d (patch)
tree83f72026185075b0ffacf5c1996d3424b0e2f31f /framework/prado-cli.php
parent2ab695a553abf26e530f5e97c1ea357233d80998 (diff)
changed the way to specify active record table.
Diffstat (limited to 'framework/prado-cli.php')
-rwxr-xr-xframework/prado-cli.php3
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