当我在Akeneo 2.1.4中使用产品模型时,我在label-column中看到了产品模型的代码。但我想在那里展示一个特定属性的价值;例如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