public function create(UserBindingModel $user) { // Insert or update the $user // in the 'users' table $this->db->insertEntity('users', array('username' => $user->getUsername(), 'password' => $user->getPassword(), 'email' => $user->getEmail(), 'cash' => $user->getCash(), 'role_id' => $user->getRoleId())); }