Open sabina-talipova opened 8 months ago
In File, the BackLinks relationship should be turned into a polymorphic many_many relationship (using a many_many through relation as documented).
File
BackLinks
File::BackLinksTracking() would then be redundant - you'd just get the backlinks directly from the polymorphic relation.
File::BackLinksTracking()
See: https://github.com/silverstripe/silverstripe-assets/blob/27000f18654ce66e6e92e40bb220121b8d750855/src/File.php#L1304
Description
In
File
, theBackLinks
relationship should be turned into a polymorphic many_many relationship (using a many_many through relation as documented).File::BackLinksTracking()
would then be redundant - you'd just get the backlinks directly from the polymorphic relation.See: https://github.com/silverstripe/silverstripe-assets/blob/27000f18654ce66e6e92e40bb220121b8d750855/src/File.php#L1304
Related