Re-format mappers

This commit is contained in:
Dennis Eichhorn 2018-05-31 19:47:26 +02:00
parent 47c0d221c0
commit dfe74dfb5e

View File

@ -48,7 +48,7 @@ class AccountMapper extends DataMapperAbstract
'account_password' => ['name' => 'account_password', 'type' => 'string', 'internal' => 'password'],
'account_email' => ['name' => 'account_email', 'type' => 'string', 'internal' => 'email', 'autocomplete' => true],
//'account_tries' => ['name' => 'account_tries', 'type' => 'int', 'internal' => 'tries'],
'account_lactive' => ['name' => 'account_lactive', 'type' => 'DateTime', 'internal' => 'lastActive'],
'account_lactive' => ['name' => 'account_lactive', 'type' => 'DateTime', 'internal' => 'lastActive'],
'account_created_at' => ['name' => 'account_created_at', 'type' => 'DateTime', 'internal' => 'createdAt'],
];
@ -60,10 +60,10 @@ class AccountMapper extends DataMapperAbstract
*/
protected static $hasMany = [
'groups' => [
'mapper' => GroupMapper::class,
'table' => 'account_group',
'dst' => 'account_group_account',
'src' => 'account_group_group',
'mapper' => GroupMapper::class,
'table' => 'account_group',
'dst' => 'account_group_account',
'src' => 'account_group_group',
],
];
@ -99,7 +99,7 @@ class AccountMapper extends DataMapperAbstract
*
* @return int Login code
*
* @todo move this to the admin accountMapper
* @todo move this to the admin accountMapper
*
* @since 1.0.0
*/