summaryrefslogtreecommitdiff
path: root/demos/time-tracker/protected/App_Code/Dao
diff options
context:
space:
mode:
authorwei <>2006-12-20 03:15:04 +0000
committerwei <>2006-12-20 03:15:04 +0000
commit2c221ea67d0512961beea8fbcb30b23865c16bb0 (patch)
treeaba7901f8e286d0b4101fc9022247897881bd5c1 /demos/time-tracker/protected/App_Code/Dao
parent2570226fbac3e26b1e94896b50d1db4bc1aa3308 (diff)
Add quickstart docs for Active Record and SqlMap
Diffstat (limited to 'demos/time-tracker/protected/App_Code/Dao')
-rw-r--r--demos/time-tracker/protected/App_Code/Dao/ReportsDao.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/demos/time-tracker/protected/App_Code/Dao/ReportsDao.php b/demos/time-tracker/protected/App_Code/Dao/ReportsDao.php
index 3e5b6456..15d0c2a3 100644
--- a/demos/time-tracker/protected/App_Code/Dao/ReportsDao.php
+++ b/demos/time-tracker/protected/App_Code/Dao/ReportsDao.php
@@ -72,6 +72,7 @@ class ReportsDao extends BaseDao
{
$sqlmap = $this->getSqlMap();
$ids = implode(',', array_map('intval', $projects));
+ $sqlmap->getDbConnection()->setActive(true); //db connection needs to be open for quoteString
$usernames = implode(',', array_map(array($sqlmap->getDbConnection(), 'quoteString'), $users));
$param['projects'] = $ids;