mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-05 06:04: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',
|
||||
],
|
||||
[
|
||||
// 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',
|
||||
'foreignTable' => 'authors',
|
||||
'foreignId' => 'id',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue