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

[Form] adding field does not properly autocompletes some properties #786

Closed
Koc opened this issue Sep 3, 2016 · 1 comment
Closed

[Form] adding field does not properly autocompletes some properties #786

Koc opened this issue Sep 3, 2016 · 1 comment
Labels

Comments

@Koc
Copy link
Contributor

Koc commented Sep 3, 2016

There is Company class with protected property $uploadedLogo. I've create form for it

class CompanySaveLogoType extends AbstractType
{
    /**
     * @param FormBuilderInterface $builder
     * @param array $options
     */
    public function buildForm(FormBuilderInterface $builder, array $options)
    {
        $builder
            ->add(
                '<autocomplete>',
                'file',
                array(
                    'required' => !$options['data']->getLogo(),
                )
            );
    }

    /**
     * @param OptionsResolverInterface $resolver
     */
    public function setDefaultOptions(OptionsResolverInterface $resolver)
    {
        $resolver->setDefaults(
            array(
                'data_class' => Company::class,
            )
        );
    }
}

2016-09-03_13-03-11

As you see from screenshot there are some autocompletes: two fields - ok, method updated - looks strange and uploaded_logo - it correctly discovers method, but why in underscore? Property is uploadedLogo.

@Koc Koc changed the title [Form] adding field does not properly autocompletes properties [Form] adding field does not properly autocompletes some properties Sep 3, 2016
Haehnchen added a commit that referenced this issue Sep 18, 2016
…ctrine field mapping occurs on PropertyAccess component #786
@Haehnchen
Copy link
Owner

released, also dropped "uploaded_logo" completion some completion as Twig now. hope that more useful for all

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

No branches or pull requests

2 participants