diff options
Diffstat (limited to 'demos/quickstart/protected/pages/Database/SqlMap.page')
-rw-r--r-- | demos/quickstart/protected/pages/Database/SqlMap.page | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/demos/quickstart/protected/pages/Database/SqlMap.page b/demos/quickstart/protected/pages/Database/SqlMap.page index c8ced852..a4082527 100644 --- a/demos/quickstart/protected/pages/Database/SqlMap.page +++ b/demos/quickstart/protected/pages/Database/SqlMap.page @@ -213,11 +213,11 @@ $user = $sqlmap->queryForObject("SelectUsers"); <com:TTextHighlighter Language="php" CssClass="source block-content" id="code_700173"> class UserRecord extends TActiveRecord { + const TABLE='users'; //table name + public $username; //the column named "username" in the "users" table public $email; - - private static $_tablename='users'; //table name - + /** * @return TActiveRecord active record finder instance */ |