maxmode/generator

Command line tools to generate code for sonata-admin bundle

Installs: 11

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

Type:symfony-bundle

dev-master 2013-10-28 18:12 UTC

This package is not auto-updated.

Last update: 2025-03-24 17:01:36 UTC


README

This is a bundle for Symfony 2.

It provides command line tool to generate CRUD code, used by sonata-admin bundle.

The command generates code based on Doctrine entities metadata.

Installation

  1. Add dependency to your project via composer:
    php composer.phar require "maxmode/generator":"dev-master"

OR add following string to your composer.json manually

    "maxmode/generator": "dev-master"
  1. Register bundle in AppKernel.php:
    $bundles = array(
        ...
        new Maxmode\GeneratorBundle\MaxmodeGeneratorBundle(),
    );

Usage

  1. Create doctrine entity manually or with entity generator:
    php app/console doctrine:generate:entity
  1. Run comand to generate CRUD for it:
    php app/console maxmode:generate:sonata-admin

Stability

Build Status