You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When a DataObject ClassName is changed the SS project may not work anymore as there may be unexpected references to the classname in the database tables.
Unexpected as: not the main ClassName field in the table relating to the class itself, but references in other tables (including Foo_Versions).
Although I am not sure if it would fix all mentions.
The text was updated successfully, but these errors were encountered:
sunnysideup
changed the title
set up system to allow clean changes of classnames
set up system to allow clean changes of DataObject ClassNames
Jul 5, 2023
Yeah this functionality definitely already exists. I'd say it should be documented though, I couldn't find anything in the docs when I looked briefly just now.
I'll move this to the developer-docs repo.
GuySartorelli
changed the title
set up system to allow clean changes of DataObject ClassNames
Document how to update ClassName references if changing the name of a DataObject class
Jul 7, 2023
Affected Version
All versions
Description
When a DataObject ClassName is changed the SS project may not work anymore as there may be unexpected references to the classname in the database tables.
Unexpected as: not the main ClassName field in the table relating to the class itself, but references in other tables (including Foo_Versions).
Proposed solution
Use the concepts from this module: https://github.com/sunnysideup/silverstripe-search-all-tables-and-fields and keep a log of changes made.
Question
This may already be covered by:
Although I am not sure if it would fix all mentions.
The text was updated successfully, but these errors were encountered: