Hi, if I create a fielddef with id “mynewfield” add it to a to a page and save “myValue” to that field.
Then remove the fielddefinition from the database or admin, will this remove myValue from my page field data, or will it still be there? Accessible if i add black the fielddef laster?
That does not seem to be the case in our 7.1 environment.
I just moved a TextOption Field from the Baseproduct fields to the Variant fields via the BO, and the data is still in the db.
Removing the field is the same as delete the field definition.
Field template is used for example that the administration should know what it should render for the administrator. Moving a field to be visible on the variant instead of the base product should not remove it’s data.
The field does not need to be in the template at all to be used from the api.
I stronly recommend thst you should use the admin or the api from code to do changes. If you are doing changes directly in database it is to easy to miss update any related data or trigger correct events in the api that corresponding to the changes in database.