Bav
Bav copied to clipboard
LogicException when quering for Bank
I did the following:
$bav = Bav::DE();
$bank = $bav->getBank('38651390');
This triggers the following Exception:
Fatal error: Uncaught exception 'LogicException' with message 'Start and end should be defined for bankId=37050299 (exception=The contextCache object should exist!)' in vendor/jschaedl/bav/library/Bav/Backend/Parser/BankDataParser.php:95
Stack trace:
#0 vendor/jschaedl/bav/library/Bav/Backend/BankDataResolver.php(37): Bav\Backend\Parser\BankDataParser->resolveAgencies('37050299')
#1 vendor/jschaedl/bav/library/Bav/Backend/BankDataResolver.php(20): Bav\Backend\BankDataResolver->resolveBankData('38651390')
#2 vendor/jschaedl/bav/library/Bav/Bav.php(38): Bav\Backend\BankDataResolver->getBank('38651390')
#3 test.php(6): Bav\Bav->getBank('38651390')
...
Another bank code triggering this behavior is for example 38650000. I had a quick look at the BankDataParser
and the data file, but I am not sure what triggers the behavior above.