Closed pjam closed 8 years ago
I finally figured it out.
For future reference and until I have time to make a PR (or someone else), I'll put here what needs to be done. First, the generator options "options" and "type" are now "entry_options" and "entry_type". Then, there are some corrections to be made in the bundle.
$this->dataClass = $options['entry_options']['data_class'];
"This is what I've found and it seems to be working. I think at least some of these issues are common to the Bootstrap Collection extension.
I hope it helps.
@pjam Great you've found the problem, we'll be waiting for the PR :smiley:
Hi all
I'm trying to use the collection upload extension, but I can't get it to work following the current documentation. My files:
Projecto.php
ImagemProjecto.php
Projecto-generator.yml
When I open the new form, I get
The option "options" does not exist. Defined options are: ...
(the same if I introduce the type option). After this I tried adding the option "options" to the UploadCollectionType, and I got this:Key "description" in object with ArrayAccess of class "Symfony\Component\Form\FormView" does not exist in AdmingeneratorFormExtensionsBundle:Form/UploadCollection:template_download.html.twig at line 8
If I remove
description
from the editable option, I get:Key "id" in object with ArrayAccess of class "Symfony\Component\Form\FormView" does not exist in AdmingeneratorFormExtensionsBundle:Form/UploadCollection:template_download.html.twig at line 70
Should I just use the bootstrap collection extension instead? I'm stuck at this, so I would like some help, if possible.