public function byIds(array $ids, $databaseConnectionName = null)
  {
    if(empty($databaseConnectionName))
    {
      $databaseConnectionName = $this->databaseConnectionName;
    }

  	return $this->Account->setConnection($databaseConnectionName)
      ->whereIn('id',$ids)
      ->get();
  }
public function byIds(array $ids, $databaseConnectionName = null)
  {
    if(empty($databaseConnectionName))
    {
      $databaseConnectionName = $this->databaseConnectionName;
    }

  	return $this->Account->setConnection($databaseConnectionName)
      ->whereIn('id',$ids)
      ->get();
  }
public function byIds ( array $ ids , $ databaseConnectionName = null ) { if ( empty ( $ databaseConnectionName ) ) { $ databaseConnectionName = $ this -> databaseConnectionName ; } return $ this -> Account -> setConnection ( $ databaseConnectionName ) -> whereIn ( 'id' , $ ids ) -> get ( ) ; }
Get an account by ID's

@param  int $id

@return Mgallegos\DecimaAccounting\Account
Get an account by ID s