Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EasyAdminAutocompleteType in nested form #1969

Closed
Upgreydd opened this issue Dec 9, 2017 · 1 comment
Closed

EasyAdminAutocompleteType in nested form #1969

Upgreydd opened this issue Dec 9, 2017 · 1 comment

Comments

@Upgreydd
Copy link

Upgreydd commented Dec 9, 2017

Hi everyone!
I can't get it to work in nested form. I have something like that:

      fields:
            - { property: 'position', type: 'collection', type_options: {entry_type: 'AppBundle\FormType\PositionType', by_reference: false, label: false, mapped: true, required: true}}

and

class PositionType extends AbstractType
{
public function buildForm(FormBuilderInterface $builder, array $options)
    {
        $builder
            ->add(
                'name',
                EasyAdminAutocompleteType::class,
                ['class' => Position::class]
            )
/** MORE CODE **/

I'm trying to get "position.name" from other "position.name" records.

the error is:

The configuration of the "AppBundle\Entity\Position" entity is not available (this entity is used as the target of the "name" autocomplete field).

@javiereguiluz
Copy link
Collaborator

I'm closing this issue because we're starting a new phase in the history of this bundle (see #2059). We've moved it into a new GitHub organization and we need to start from scratch: no past issues, no pending pull requests, etc.

I understand if you are angry or disappointed by this, but we really need to "reset" everything in order to reignite the development of this bundle.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants