server
server copied to clipboard
fix: add workaround for oci and limit queries
Summary
DBAL uses a helper column "doctrine_rownum" for oci queries with limit and offset^1. The column is also present in the query result and qbmapper tries to set it for the entity.
1) OCA\EndToEndEncryption\Tests\Unit\Db\LockMapperTest::testFindAllLocksOlderThan
BadFunctionCallException: dOCTRINEROWNUM is not a valid attribute
/home/runner/work/end_to_end_encryption/end_to_end_encryption/lib/public/AppFramework/Db/Entity.php:138
/home/runner/work/end_to_end_encryption/end_to_end_encryption/lib/public/AppFramework/Db/Entity.php:167
/home/runner/work/end_to_end_encryption/end_to_end_encryption/lib/public/AppFramework/Db/Entity.php:75
/home/runner/work/end_to_end_encryption/end_to_end_encryption/lib/public/AppFramework/Db/QBMapper.php:320
/home/runner/work/end_to_end_encryption/end_to_end_encryption/lib/public/AppFramework/Db/QBMapper.php:338
/home/runner/work/end_to_end_encryption/end_to_end_encryption/apps/end_to_end_encryption/lib/Db/LockMapper.php:70
/home/runner/work/end_to_end_encryption/end_to_end_encryption/apps/end_to_end_encryption/tests/Unit/Db/LockMapperTest.php:110
TODO
- [ ] CI
Checklist
- Code is properly formatted
- Sign-off message is added to all commits
- [ ] Tests (unit, integration, api and/or acceptance) are included
- [ ] Screenshots before/after for front-end changes
- [ ] Documentation (manuals or wiki) has been updated or is not required
- [ ] Backports requested where applicable (ex: critical bugfixes)