/**
  * @version 0.0.5
  * @param OTS_Account $account Account to be deleted.
  * @deprecated 0.0.5 Use OTS_Account->delete().
  */
 public function deleteAccount(OTS_Account $account)
 {
     $this->db->query('DELETE FROM ' . $this->db->tableName('account') . ' WHERE ' . $this->db->fieldName('id') . ' = ' . $account->getId());
 }
Exemple #2
0
 /**
  * Assigns character to account.
  * 
  * <p>
  * This method only updates object state. To save changes in database you need to use {@link OTS_Player::save() save() method} to flush changed to database.
  * </p>
  * 
  * @param OTS_Account $account Owning account.
  * @throws E_OTS_NotLoaded If passed <var>$account</var> parameter is not loaded.
  */
 public function setAccount(OTS_Account $account)
 {
     $this->data['account_id'] = $account->getId();
 }