symfony2admingenerator / GeneratorBundle

Admingenerator for Symfony. Parse YAML files to build customized backend.
MIT License
67 stars 29 forks source link

Method "ymlKey" does not exist #241

Closed lionelbzv closed 8 years ago

lionelbzv commented 8 years ago

Env: SF2.8 + Generator 2.0-beta43

I've got problem with this part of yml:

    edit:
        params:
            title:                              "Edition du menu principal '{{ CmsCategory.title }}'"
            tabs:
                "Contenu":
                    "Texte":                    [ title ]
                "Attributs":
                    "Création":                 [ [ online ], [ created_at, updated_at ] ]
            fields: ~
            actions:
                save: ~
                list: ~

Exception:

Method "ymlKey" for object "Admingenerator\GeneratorBundle\Builder\Propel\EditBuilderTemplate" does not exist in ../CommonAdmin/tabs.php.twig at line 14

It's ok if I don't use "tabs" key, for example:

    edit:
        params:
            title:                              "Edition du menu principal '{{ CmsCategory.title }}'"
            display:
                  "Texte":                    [ title ]
                  "Création":                 [ [ online ], [ created_at, updated_at ] ]
            fields: ~
            actions:
                save: ~
                list: ~

Something has changed in the config to add "tabs"? Thanks!

tobias-93 commented 8 years ago

See #230, has already been fixed

lionelbzv commented 8 years ago

ok thanks, just see it sorry