/**
  * 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
  */
 public function create(array $data)
 {
     $AccountType = new AccountType();
     $AccountType->setConnection($this->databaseConnectionName);
     $AccountType->fill($data)->save();
     return $AccountType;
 }
 public function __construct(Model $AccountType, $databaseConnectionName)
 {
     $this->AccountType = $AccountType;
     $this->databaseConnectionName = $databaseConnectionName;
     $this->AccountType->setConnection($databaseConnectionName);
 }