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

  	return $this->VoucherType->on($databaseConnectionName)->find($id);
  }
public function byId($id, $databaseConnectionName = null)
  {
    if(empty($databaseConnectionName))
    {
      $databaseConnectionName = $this->databaseConnectionName;
    }

  	return $this->VoucherType->on($databaseConnectionName)->find($id);
  }
public function byId ( $ id , $ databaseConnectionName = null ) { if ( empty ( $ databaseConnectionName ) ) { $ databaseConnectionName = $ this -> databaseConnectionName ; } return $ this -> VoucherType -> on ( $ databaseConnectionName ) -> find ( $ id ) ; }
Get a ... by ID

@param  int $id

@return Mgallegos\DecimaAccounting\Accounting\VoucherType
Get a ... by ID