Convert Doctrine2 models to Ember-Data models
Just add the package to your composer.json
{
"require": {
"morontt/doctrine-to-ember": "dev-master"
}
}
or running the command:
php composer.phar require morontt/doctrine-to-ember "dev-master"
Enable the bundle in the kernel:
<?php
// app/AppKernel.php
public function registerBundles()
{
$bundles = array(
// ...
new Mtt\Bundle\DoctrineToEmberBundle\MttDoctrineToEmberBundle(),
);
}
Configure the DoctrineToEmberBundle:
# app/config/config.yml
mtt_doctrine_to_ember:
application_variable: MySuperApp
models_path: "%kernel.root_dir%/../web/js/app/models"
Running the command:
app/console mtt:generate:models