Warning: You are browsing the documentation from version 4 to 10 of Pimcore. Please visit https://pimcore.com/docs/platform/ for the latest versions of Pimcore.
Version:

Parent Class for Objects

In addition to overriding model classes it is also possible to make the object model classes extend a certain parent class.

To do so, define a Parent class in the classes' basic configuration as in the screen below. The class will then extend the given parent class.

Parent Class Configuration

Please make sure, that your custom class itself extends Pimcore\Model\DataObject\Concrete at some point in its class hierarchy. Otherwise the object class will not work.

Starting from Pimcore 5.4.0, it is also possible to make the object listing model extend a certain parent class too. To do so, define a Listing Parent class in the classes basic configuration. The listing class will then extend the given listing parent class.