Embed many form type

Description

It would be nice to have a component just like integrated_embed_one for documents with an EmbedMany property. It could then be built based on a combination of the sortable_collection and integrated_embed_one.

Technical tasks

None

Deployment actions

None

Activity

Show:
Johan Liefers
December 7, 2015, 1:02 PM

Is it possible to also implement this in release 0.4?

Marijn Otte
December 7, 2015, 1:15 PM

I confirmed the issue. If you have a PR (because you have a project which you need it for and can take the time from) this is possible, otherwise I don't have an ETA yet.

Johan Liefers
December 7, 2015, 2:37 PM

I don't have a PR yet, but I need the functionality in DZG

Johan Liefers
December 22, 2015, 1:03 PM

There is no code needed for embedding multiple items. You can use the bootstrap_collection in combination with integrated_embed_one, for example:
@Type\Field(

  • type="bootstrap_collection",

  • options={

  • "type"="integrated_embed_one",

  • "options"={

  • "data_class"="Integrated\Bundle\BlockBundle\Document\Block\Embedded\BlockSize",

  • "label"="label"

  • },

  • "allow_add"=true,

  • "allow_delete"=true

  • }

  • )

Assignee

Unassigned

Client

Marijn Otte

Fix versions

Configure