Skip to content
This repository has been archived by the owner on May 29, 2023. It is now read-only.

morontt/DoctrineToEmberBundle

Repository files navigation

DoctrineToEmberBundle

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

About

Convert Doctrine2 models to Ember-Data models

Resources

License

Stars

Watchers

Forks

Packages

No packages published