silverstripe / silverstripe-framework

Silverstripe Framework, the MVC framework that powers Silverstripe CMS
https://www.silverstripe.org
BSD 3-Clause "New" or "Revised" License
720 stars 822 forks source link

TODO: DataObject - Add instance specific removeExtension() #11024

Closed sabina-talipova closed 9 months ago

sabina-talipova commented 9 months ago

Description

DataObject - add instance specific removeExtension() which undos loadExtraStatics() and defineMethods().

See: https://github.com/silverstripe/silverstripe-framework/blob/cf78a9d785b9959a92dfb52c2a456bea80a4c567/src/ORM/DataObject.php#L102C8-L102C8

GuySartorelli commented 9 months ago

Gonna close this - we don't have a concept of instance-specific extensions right now (even the extensions that are applied to Extensible objects are singletons, where the exact same extension singleton applies to all of those objects). I don't think we want to complicate things by introducing that concept.