summaryrefslogtreecommitdiff
path: root/demos/time-tracker
diff options
context:
space:
mode:
authorwei <>2006-07-28 00:02:13 +0000
committerwei <>2006-07-28 00:02:13 +0000
commitcaa348ceabba58447bf8deddb8c6316ff3dc88ce (patch)
treeccb2f2215f07be6ed1694c403f54ee75c005d397 /demos/time-tracker
parent5c1132f6da292a689bc52bd7f20a83ff8d733fbd (diff)
Fixed nested GroupBy resultMap
Diffstat (limited to 'demos/time-tracker')
-rw-r--r--demos/time-tracker/protected/App_Code/UserDao.php4
-rw-r--r--demos/time-tracker/protected/pages/TimeTracker/Login.php16
2 files changed, 19 insertions, 1 deletions
diff --git a/demos/time-tracker/protected/App_Code/UserDao.php b/demos/time-tracker/protected/App_Code/UserDao.php
index 6f31090d..a0a80f7e 100644
--- a/demos/time-tracker/protected/App_Code/UserDao.php
+++ b/demos/time-tracker/protected/App_Code/UserDao.php
@@ -30,7 +30,9 @@ class UserDao extends BaseDao
public function getUserByName($username)
{
$sqlmap = $this->getConnection();
- return $sqlmap->queryForObject('GetUserByName', $username);
+ $user = $sqlmap->queryForObject('GetUserByName', $username);
+ var_dump($user);
+ return $user;
}
/**
diff --git a/demos/time-tracker/protected/pages/TimeTracker/Login.php b/demos/time-tracker/protected/pages/TimeTracker/Login.php
index aa12e716..d8c5182f 100644
--- a/demos/time-tracker/protected/pages/TimeTracker/Login.php
+++ b/demos/time-tracker/protected/pages/TimeTracker/Login.php
@@ -1,4 +1,7 @@
<?php
+
+Prado::using('Application.App_Data.ezpdo.Models.*');
+
/**
* Login Page class file.
*
@@ -23,6 +26,19 @@
*/
class Login extends TPage
{
+
+ function onLoad($param)
+ {
+ //$category = new TimeEntryCategory();
+ $ezpdo = $this->Application->Modules['ezpdo']->getConnection();
+ //$cats = $ezpdo->find('from TimeEntryCategory');
+ $category = $ezpdo->create('TimeEntryCategory');
+ //$category->Name = "Category 1";
+ //$category->Abbreviation = "CAT1";
+ var_dump($category);
+ //$ezpdo->commit($category);
+ }
+
/**
* Validates the username and password.
* @param TControl custom validator that created the event.