silverstripe-cms
silverstripe-cms copied to clipboard
Change the `BackLinks` relation in `SiteTree` to a polymorphic many_many relation
Description
In SiteTree
, the BackLinks
relationship should be turned into a polymorphic many_many relationship (using a many_many through relation as documented).
SiteTree::BackLinksTracking()
would then be redundant - you'd just get the backlinks directly from the polymorphic relation.
See: https://github.com/silverstripe/silverstripe-cms/blob/58a2d5817398cb41cb983e609c879aab73c57f28/code/Model/SiteTree.php#L1961-L1962
Related
- https://github.com/silverstripe/silverstripe-assets/issues/575