silverstripe-cms icon indicating copy to clipboard operation
silverstripe-cms copied to clipboard

Change the `BackLinks` relation in `SiteTree` to a polymorphic many_many relation

Open sabina-talipova opened this issue 1 year ago • 0 comments

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

sabina-talipova avatar Oct 11 '23 23:10 sabina-talipova