As it says in the docs overriding the Document Class is not possible via the “class_overrides” key (https://pimcore.com/docs/6.x/Development_Documentation/Extending_Pimcore/Overriding_Models.html).
Does anyone know if there is another way to achieve this? Specifically i would like to override the “getByPath()” Method.
I also already tried to override this method in the Pimcore\Model\Document\Dao Class and it didn’t work either.
Is this just not possible at all or am I missing something?
Thanks for your help.