Skip to content

Commit

Permalink
[IM] Implement #29 - show contact / user last updated timestamp
Browse files Browse the repository at this point in the history
  • Loading branch information
barryo committed Feb 1, 2014
1 parent ef681b6 commit eea853c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
4 changes: 4 additions & 0 deletions application/controllers/ContactController.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,10 @@ protected function _feInit()
'created' => [
'title' => 'Created',
'type' => self::$FE_COL_TYPES[ 'DATETIME' ]
],
'lastupdated' => [
'title' => 'Updated',
'type' => self::$FE_COL_TYPES[ 'DATETIME' ]
]
];
break;
Expand Down
7 changes: 6 additions & 1 deletion application/controllers/UserController.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,11 @@ protected function _feInit()
'created' => [
'title' => 'Created',
'type' => self::$FE_COL_TYPES[ 'DATETIME' ]
],

'lastupdated' => [
'title' => 'Updated',
'type' => self::$FE_COL_TYPES[ 'DATETIME' ]
]
];
break;
Expand Down Expand Up @@ -144,7 +149,7 @@ protected function listGetData( $id = null )
$qb = $this->getD2EM()->createQueryBuilder()
->select( 'u.id as id, u.username as username, u.email as email, u.privs AS privileges,
u.created as created, u.disabled as disabled, c.id as custid, c.name as customer,
contact.id AS contactid' )
u.lastupdated AS lastupdated, contact.id AS contactid' )
->from( '\\Entities\\User', 'u' )
->leftJoin( 'u.Customer', 'c' )
->leftJoin( 'u.Contact', 'contact' );
Expand Down

0 comments on commit eea853c

Please sign in to comment.