A PHP package customized to generate entity and repository classes of a project that uses Doctrine ORM 2
PHP
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
src/Generator
README.md
composer.json

README.md

Generator to Doctrine ORM 2

A PHP package customized to generate entity and repository classes of a project that uses Doctrine ORM in a command-line interface.

Installation

composer require globtec/doctrine-generator dev-master --update-with-dependencies

Usage

Before, you need create a PHP file named generator.php with the following code:

require_once 'vendor/autoload.php';

// TODO: Add an instance of the EntityManager and assigns in a variable named $em 

Generator\Application::run($em);

To view a list of all available commands, you may use the list command:

php generator.php list

To view all arguments and options, you may use the help command:

php generator.php doctrine:generate --help