【发布时间】:2018-02-23 13:30:51
【问题描述】:
当我在 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
【问题讨论】:
标签: php symfony doctrine akeneo