mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-05 01:14:03 +00:00
tests: add comment to clarify the chosen path
This commit is contained in:
parent
5561ce208e
commit
870fb5d37c
1 changed files with 4 additions and 0 deletions
|
|
@ -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',
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue