2017 © Pedro Peláez
 

library silex-doctrine-orm-service-provider

A doctrine orm service provider

image

tm/silex-doctrine-orm-service-provider

A doctrine orm service provider

  • Wednesday, March 8, 2017
  • by tommymuehle
  • Repository
  • 0 Watchers
  • 2 Stars
  • 53 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 8 % Grown

The README.md

silex-doctrine-orm-service-provider

No Maintenance Intended, (*1)

This provider is a very leightweight doctrine orm service provider for silex projects. It can only handle simple annotations like @Entity, @Table and so long. But in many cases this is sufficient., (*2)

Install via composer:, (*3)

Add 'tm/silex-doctrine-orm-service-provider' to the dependencies in your projects composer.json file and update your dependencies., (*4)

A usage example:, (*5)

$app->register(new TM\Provider\DoctrineORMServiceProvider(), array(
    'orm.options' => array(
        'proxies_dir' => __DIR__ . '/cache/doctrine/proxies', // set to null if you want to use the system configured directory path for temporary files
        'entity_dirs' => array(
            array('path' => __DIR__ . '/../src/Foo/Entity'),
            array('path' => __DIR__ . '/../src/Bar/Entity'),
            // ...
        ),
        'annotations' => array(
            __DIR__ . '/../vendor/doctrine/orm/lib/Doctrine/ORM/Mapping/Driver/DoctrineAnnotations.php'
        )
    )
));

/* @var $em \Doctrine\ORM\EntityManager */
$em = $app['orm.em'];

// ... use $em in your application

So all entites in the namespaces Foo\Entity (for example Foo\Entity\Blog, Foo\Entity\Post and Foo\Entity\Comment) and Bar\Entity are mapped and can be handeled with the entity-manager., (*6)

If you need more advanced options please use dflydev-doctrine-orm-service-provider instead., (*7)

The Versions

08/03 2017

dev-master

9999999-dev

A doctrine orm service provider

  Sources   Download

MIT

The Requires

 

The Development Requires

orm silex doctrine

14/09 2014

1.0.0

1.0.0.0

A doctrine orm service provider

  Sources   Download

MIT

The Requires

 

The Development Requires

orm silex doctrine