dongle7637 2016-05-20 10:26
浏览 19

Symfony - 添加多个图像

Hello I'm learning Symfony 3 and i Have this problem that I have an Entity Projects and an entity ProjectImages and relations is one to many.

Now I want to add f.e 4 images to one project and I don't know how to do it.

I read the documentation, how to add files etc. But how to add file in association in one FOrm where I create project ?

  • 写回答

1条回答 默认 最新

  • dongzhun8449 2016-05-20 10:29
    关注

    You should use form collection here is examples.

    http://symfony.com/doc/current/cookbook/form/form_collections.html

    评论

报告相同问题?