symfonyorocommerce

OroPlatform: how to implement FileType


I need to add a FileType field to the Customer User Entity.

I tried to add it directly in backoffice and it's fine : backoffice screenshot

But now, I would like to implement it. Is there any documentations to achieve this? Should I use the OroAttachmentBundle?

Thanks


Solution

  • You are right. OroAttachmentBundle provides files management features.

    Follow the documentation to create a field from the code: https://doc.oroinc.com/bundles/platform/AttachmentBundle/attachment-bundle-config/#attachment-bundle-migration-extension.