mirror of
https://github.com/abhigyanpatwari/GitNexus.git
synced 2026-11-01 07:02:35 +00:00
fix(schema): add missing CodeRelation pairs for Class->Trait and Method->Property
Laravel projects commonly use traits (HasFactory, SoftDeletes, etc.) on classes and methods that reference model properties. These relation pairs were missing from the CodeRelation table, causing edges to be dropped during indexing. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
305c5a743c
commit
ad2bf7a5cf
1 changed files with 2 additions and 0 deletions
|
|
@ -250,6 +250,7 @@ CREATE REL TABLE ${REL_TABLE_NAME} (
|
|||
FROM Class TO \`Enum\`,
|
||||
FROM Class TO \`Annotation\`,
|
||||
FROM Class TO \`Constructor\`,
|
||||
FROM Class TO \`Trait\`,
|
||||
FROM Method TO Function,
|
||||
FROM Method TO Method,
|
||||
FROM Method TO Class,
|
||||
|
|
@ -264,6 +265,7 @@ CREATE REL TABLE ${REL_TABLE_NAME} (
|
|||
FROM Method TO \`Impl\`,
|
||||
FROM Method TO Interface,
|
||||
FROM Method TO \`Constructor\`,
|
||||
FROM Method TO \`Property\`,
|
||||
FROM \`Template\` TO \`Template\`,
|
||||
FROM \`Template\` TO Function,
|
||||
FROM \`Template\` TO Method,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue