1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2026-02-05 03:34:03 +00:00

tests: add comment to clarify the chosen path

This commit is contained in:
Samuel Štancl 2025-07-01 19:16:40 +02:00
parent 5561ce208e
commit 870fb5d37c

View file

@ -453,6 +453,10 @@ test('table rls manager generates shortest paths that lead to the tenants table
'foreignId' => 'id', 'foreignId' => 'id',
], ],
[ [
// Importantly, the best path goes through authors
// since ratings -> posts is nullable, as well as
// posts -> tenants directly (without going through
// authors first).
'foreignKey' => 'author_id', 'foreignKey' => 'author_id',
'foreignTable' => 'authors', 'foreignTable' => 'authors',
'foreignId' => 'id', 'foreignId' => 'id',