morontt / doctrine-to-ember
Conversion models Doctrine2 to the models Ember-Data
Installs: 1 432
Dependents: 0
Suggesters: 0
Security: 0
Stars: 3
Watchers: 1
Forks: 0
Open Issues: 1
Type:symfony-bundle
Requires
- symfony/framework-bundle: ~2.1|~3.0
Requires (Dev)
- doctrine/orm: ~2.2,>=2.2.3
- twig/twig: ~1.11||~2.0
This package is auto-updated.
Last update: 2022-02-01 12:45:22 UTC
README
Convert Doctrine2 models to Ember-Data models
Installation
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"
Usage
Running the command:
app/console mtt:generate:models