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

Propel form type model w. group_by is rendered without property display #358

Closed
lionelbzv opened this issue Sep 11, 2015 · 3 comments
Closed

Comments

@lionelbzv
Copy link

Env SF2.7.4 / Propel1

I've created a choice form type like that:

        $builder->add('mychoice', 'model', array(
                'class' => 'Foo\\Bar',
                'query' => FooBarQuery::create()->filterBySomething(true),
                'group_by' => 'example',
                'property' => 'title',
                'multiple' => false,
                'expanded' => false,
            ));

The rendering choice list is ok with good optgroup select options but the title's property is not displayed - id's property instead. If I remove the group_by option, the title property is well displayed.

What's wrong?

@lionelbzv
Copy link
Author

any idea out there? 👍

thanks

@lionelbzv
Copy link
Author

I've give a try today for this one, but hard to find where it fails with all the form stuff & ChoiceList inheritence. I can't find where it fails, somewhere in the propel1-bridge: is there a github repo out there where I can post this problem apart this one?

Thanks.

@lionelbzv
Copy link
Author

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

No branches or pull requests

3 participants