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

    return $this->JournalEntry->setConnection($databaseConnectionName)->whereIn('account_id', $ids)->get();
  }