/**
  * Store model in the db
  * if $model->id is null, add a new row
  * @param Application_Model_AuthAccount $model
  */
 public function save(Application_Model_AuthAccount $model)
 {
     $data = array('username' => $model->getUsername(), 'password' => $model->getPassword(), 'passphrase' => $model->getPassphrase(), 'enabled' => (int) $model->isEnabled(), 'altAllowed' => (int) $model->isAltAllowed());
     if (null === ($id = $model->getId())) {
         unset($data['id']);
         $id = $this->getDbTable()->insert($data);
         $model->setId($id);
     } else {
         $this->getDbTable()->update($data, array('id = ?' => $id));
     }
 }