Overwrite getElementAdminStyle of AbstractObject

Hi,

I am trying to use custom icons for objects in object tree. It works well if I change getElementAdminStyle() directly in Pimcore/Model/DataObject/AbstractObject.php file.
But I want to override the class, so I followed the steps in documentation but after the refresh (and clearing the cache), there’s no effect.
I created a class in src/AppBundle/Model/DataObject/AbstractObject.php

<?php
namespace AppBundle\Model\DataObject;
class AbstractObject extends \Pimcore\Model\DataObject\AbstractObject { 
    //Change icons of object in a tree
    public function getElementAdminStyle() {
        \Pimcore\Log\Simple::log("test", "overriden model");
        if (empty($this->o_elementAdminStyle)) {
            if($this instanceof Country) {$this->o_elementAdminStyle = new \AppBundle\Model\Element\Country_AdminStyle($this);}
            else {
                $this->o_elementAdminStyle = new \Pimcore\Model\Element\AdminStyle($this);
            }
        }
        return $this->o_elementAdminStyle;
    } 
}

And changed app/config/config.yml

pimcore:
models:
class_overrides:
‘Pimcore\Model\DataObject\AbstractObject’: ‘AppBundle\Model\DataObject\AbstractObject’

After refresh it is still using getElementAdminStyle() in Pimcore\Model\DataObject\AbstractObject, not the overriden one.
Am I missing something in order to get it work?

Thanks a lot

Hello,

I have the same issue. Any ideas?

Thanks
Andrej