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:
Güneş Bizim 2026-02-25 11:33:54 +03:00
parent 305c5a743c
commit ad2bf7a5cf

View file

@ -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,