当我在 Akeneo 2.1.4 中使用产品模型时,我在标签列中看到了产品模型的代码。但我想在那里显示特定属性的值;name
例如或group name
。我怎样才能做到这一点?
编辑:
我尝试扩展类并用我自己的方式重写它entities.yml
:
parameters:
# Rewrite product model so we can override the getLabel()-method:
pim_catalog.entity.product_model.class: Vendor\Bundle\AppBundle\Model\ProductModel
但后来我得到了错误:
The class 'Vendor\Bundle\AppBundle\Model\ProductModel' was not found in the chain configured namespaces
Gedmo\Tree\Entity,
Oro\Bundle\ConfigBundle\Entity,
Oro\Bundle\UserBundle\Entity,
Pim\Bundle\CustomEntityBundle\Entity,
FOS\OAuthServerBundle\Entity,
Pim\Bundle\UserBundle\Entity,
Pim\Bundle\ApiBundle\Entity,
Pim\Bundle\CatalogBundle\Entity,
Pim\Bundle\CommentBundle\Entity,
Pim\Bundle\DataGridBundle\Entity,
Pim\Bundle\NotificationBundle\Entity,
Akeneo\Component\Batch\Model,
Akeneo\Component\BatchQueue\Queue,
Akeneo\Component\FileStorage\Model,
Pim\Component\Catalog\Model,
Akeneo\Component\Versioning\Model