These are chat archives for symfony2admingenerator/GeneratorBundle

23rd
Apr 2015
Matej Velikonja
@matejvelikonja
Apr 23 2015 09:39
@los
@loostro i have a problem with s2a_date_picker. How can I change the format that is shown to the user? I tried this
      startDateTime:
        formType: s2a_date_picker
        formOptions:
          config:
            widget_format: "DD. MMMM YYYY"
but i'm constatly getting format yyyy-mm-dd
Stéphane
@sescandell
Apr 23 2015 09:41
@matejvelikonja maybe try to use the format option
Matej Velikonja
@matejvelikonja
Apr 23 2015 11:22
@loostro you can’t changed format options, since 'format' => array('yyyy-MM-dd’) is the allowed value
@sescandell
Stéphane
@sescandell
Apr 23 2015 11:29
yes, you're right... PR ? :)
Matej Velikonja
@matejvelikonja
Apr 23 2015 11:31
but not even sure if this is the problem
still checking
Matej Velikonja
@matejvelikonja
Apr 23 2015 11:43
ok. found out the real problem with format issue. this commit broke customizing formatting symfony2admingenerator/FormExtensionsBundle@b5bb0fa
this format value always ovverides configuration from generator.yml
in my opinion we should turn around merging of this two configs
this is the second same problem that I found in this bundles. guys remember, when merging we first use the default config and than the one that is configurable.
will make a PR with suggested settings
PR symfony2admingenerator/FormExtensionsBundle#35