Pimcore core class override EncryptedField


#1

Hi,

Currently i am having issues overriding the following class: https://github.com/pimcore/pimcore/blob/master/models/DataObject/ClassDefinition/Data/EncryptedField.php because there is a typo on this file that is giving an error. The typo is in line 309 “data” should be $data. Can i override this with the following class with this config:

models:
class_overrides:
Pimcore\Model\DataObject\ClassDefinition\Data\EncryptedField

Or how can i override this class to fix this issue?


#2

create a PR on github to fix it.

In the mean time, you could overwrite it by creating a new object editable and give it the same tag as the original one.