The bundle provides a series of abstract entities.
This entity implements the basic interfaces that are used in Akeneo. It defines a "code" property which is used throughout the PIM as a reference.
The repositories for this type of entity should extend
Pim\Bundle\CustomEntityBundle\Entity\Repository\CustomEntityRepository
.
This entity extends the AbstractCustomEntity, and provides a link to a translation entity. This is used to provide a different label for each activated locale.
The entity containing the translations should implement Akeneo\Tool\Component\Localization\Model\TranslatableInterface
.
The repositories for this type of entity should extend
Pim\Bundle\CustomEntityBundle\Entity\Repository\TranslatableCustomEntityRepository
.
This entity should be used when a custom attribute should be linked to the entity.
The repositories for this entity should extend
Pim\Bundle\CustomEntityBundle\Entity\Repository\CustomOptionRepository
.
This entity should be used when a custom attribute should be linked to the entity, and when some properties of the entity have to be localized.
The entity containing the translations should extend
Pim\Bundle\CustomEntityBundle\Entity\AbstractCustomOptionTranslation
The repositories for this entity should extend
Pim\Bundle\CustomEntityBundle\Entity\Repository\TranslatableCustomOptionRepository
.