public function create(array $data)
  {
    $AccountType = new AccountType();
    $AccountType->setConnection($this->databaseConnectionName);
    $AccountType->fill($data)->save();

    return $AccountType;
  }
public function create(array $data)
  {
    $AccountType = new AccountType();
    $AccountType->setConnection($this->databaseConnectionName);
    $AccountType->fill($data)->save();

    return $AccountType;
  }
public function create ( array $ data ) { $ AccountType = new AccountType ( ) ; $ AccountType -> setConnection ( $ this -> databaseConnectionName ) ; $ AccountType -> fill ( $ data ) -> save ( ) ; return $ AccountType ; }
Create a new account type

@param array $data
An array as follows: array('name'=>$name, 'pl_bs_category'=>$plBsCategory, 'deferral_method'=>$deferralMethod,
'lang_key'=>$langKey, 'organization_id'=>$organizationId
);

@return boolean
Create a new account type