some fixes on comments

This commit is contained in:
kbariotis
2013-05-13 20:50:32 +03:00
parent a2c33a4c58
commit 2ca016fb66
2 changed files with 5 additions and 5 deletions

View File

@@ -43,14 +43,14 @@ class UserMapper
*/
public function save(User $user)
{
// $data keys shoulds correspond to valid Table columns on the Database
/* $data keys shoulds correspond to valid Table columns on the Database */
$data = array(
'userid' => $user->getUserId(),
'username' => $user->getUsername(),
'email' => $user->getEmail(),
);
// if no ID specified create new user else update the one in the Database
/* if no ID specified create new user else update the one in the Database */
if (null === ($id = $user->getUserId())) {
unset($data['userid']);
$this->_adapter->insert($data);