Closed sabina-talipova closed 5 months ago
Currently for many_many through relations, the "from" can be polymorphic, but the "to" cannot. We should support polymorphism on both ends, if possible.
many_many
See: https://github.com/silverstripe/silverstripe-framework/blob/cf78a9d785b9959a92dfb52c2a456bea80a4c567/src/ORM/DataObjectSchema.php#L1156
Closing as a duplicate of https://github.com/silverstripe/silverstripe-framework/issues/9148
Description
Currently for
many_many
through relations, the "from" can be polymorphic, but the "to" cannot. We should support polymorphism on both ends, if possible.See: https://github.com/silverstripe/silverstripe-framework/blob/cf78a9d785b9959a92dfb52c2a456bea80a4c567/src/ORM/DataObjectSchema.php#L1156