sensio/SensioGeneratorBundle — pull request #129 by adurieux (2012-05-20 14:12:04+00:00)
Title: Drafted a doctrine:generate:fixture command.

## Description:

Created a command that allows to output PHP code in the console to quickly build fixtures from an existing database.

Example use :
```
php app/console doctrine:generate:fixture 'Acme\DemoBundle\Entity\Product' 1234 references
```

Outputs :
```
// Creating object :
$Product1234 = new Acme\DemoBundle\Entity\Product();

// Field mappings :
$Product1234->setName('My awesome product');
$Product1234->setPrice(3.99);
$Product1234->setAvailability(true);
...

// Association mappings :
$Product1234->setCategory($em->getReference('Acme\DemoBundle\Entity\Category',376));
...

```

## PR information :

* **Side effects:** -
* **Bug fix:** no
* **Feature addition:** yes
* **Backwards compatibility break:** no
* **Bundle tests pass:** yes
* **Fixes the following tickets:** -
* **References the following tickets:** -
* **External references :** -