symfony-cmf / media-bundle

UNMAINTAINED - Minimalistic interfaces to handle media in the context of the CMF
http://cmf.symfony.com/
30 stars 40 forks source link

Integration with Entities: Project Example #164

Open ghost opened 7 years ago

ghost commented 7 years ago

Hi again!

So, finally I could manage to get it installed and configured...Now I need help to get it work in my project. As you can see, I'm very new to Symfony2

I have Sonata Admin in my project and I got the Entity "Curriculum"...which will have the field "archives" that would be a one-to-many relationship.

"Archive" would be used in others entities outside "Curriculum" (that's why I need a file management bundle in first place...) and the files would be saved according to which entity is called.

For example: I got this modules:

  1. Curriculum
  2. Documents

Archives for Curriculum should be stored in /company/cv/ Archives for Documents should be stored in /company/documents/

Anyone's willing to enlighten me a bit? I think it would be a good idea to insert a step-by-step guide for newbies in the docs...