These are chat archives for symfony2admingenerator/GeneratorBundle

Jul 2015
Serg N. Kalachev
Jul 23 2015 07:06
@bobvandevijver I've found my mistake. I've omit {{ parent }} call in javascripts_head twig block in base template. Thank you for your support!
Lorenzo Sanzari
Jul 23 2015 13:51
Hi guys!
One question: when I use GeneratorBundle (v2!) with FormExtensionBundle, if I need to create CRUDs with foreign keys relationships (1toN or NtoN), I must to do something in particular?
(e.g. to generate my entities enabled for the relationships, I must to proceed in any specific manner?)
Lorenzo Sanzari
Jul 23 2015 13:57
Here are listed my installed resources ( app composer.json):
"require": {
        "php": ">=5.3.3",
        "symfony/symfony": "2.7.*",
        "doctrine/orm": "~2.2,>=2.2.3,<2.5",
        "doctrine/dbal": "<2.5",
        "doctrine/doctrine-bundle": "~1.4",
        "symfony/assetic-bundle": "~2.3",
        "symfony/swiftmailer-bundle": "~2.3",
        "symfony/monolog-bundle": "~2.4",
        "sensio/distribution-bundle": "~3.0,>=3.0.12",
        "sensio/framework-extra-bundle": "~3.0,>=3.0.2",
        "incenteev/composer-parameter-handler": "~2.0",
        "friendsofsymfony/user-bundle": "2.0.*@dev",
        "knplabs/knp-menu-bundle": "~2",
        "symfony2admingenerator/generator-bundle": "dev-master",
        "symfony2admingenerator/user-bundle": "dev-master",
        "doctrine/doctrine-fixtures-bundle": "2.2.*",
I'm new to Symfony 2, and I usually generate entities starting from database table (with relative FK etablished relationships).
So, what is the correct sequence of commands to generate entities and then admin modules?
Jul 23 2015 17:17
@ulisse73 use admin:generate-bundle command to generate bundle structure with admingenerator
or use generate:bundle for symfony2 standard bundle generator, and then for each class in Entity directory use admin:generate-admin to add admingenerator files to existing bundle