PropelBundle icon indicating copy to clipboard operation
PropelBundle copied to clipboard

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

Open lionelbzv opened this issue 9 years ago • 3 comments

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 avatar Sep 11 '15 10:09 lionelbzv

any idea out there? :+1:

thanks

lionelbzv avatar Sep 23 '15 12:09 lionelbzv

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 avatar Dec 11 '15 16:12 lionelbzv

Open bounty of +100 for help on this one! :+1:

http://stackoverflow.com/questions/32602183/propel-form-type-model-w-group-by-is-rendered-without-property-display

lionelbzv avatar Dec 17 '15 10:12 lionelbzv