PHPackages                             activpik/entity-manager-generator-bundle - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Framework](/categories/framework)
4. /
5. activpik/entity-manager-generator-bundle

ActiveSymfony-bundle[Framework](/categories/framework)

activpik/entity-manager-generator-bundle
========================================

Entity Manager Generator bundle for Symfony 2

0241PHP

Since Sep 13Pushed 12y ago2 watchersCompare

[ Source](https://github.com/Kalyzee/EntityManagerGeneratorBundle)[ Packagist](https://packagist.org/packages/activpik/entity-manager-generator-bundle)[ RSS](/packages/activpik-entity-manager-generator-bundle/feed)WikiDiscussions master Synced 5d ago

READMEChangelogDependenciesVersions (1)Used By (0)

EntityManagerGeneratorBundle
============================

[](#entitymanagergeneratorbundle)

[![Build Status](https://camo.githubusercontent.com/ccb2d87f5613d0884550bfabeb4d5200edbabf6095ce806fa4409f1ea4e13993/68747470733a2f2f7472617669732d63692e6f72672f4b616c797a65652f456e746974794d616e6167657247656e657261746f7242756e646c652e706e673f6272616e63683d6d6173746572)](http://travis-ci.org/#!/Kalyzee/EntityManagerGeneratorBundle)

Entity Manager Generator for Symfony 2

Works only with bundles with a services.xml config file. Next release will support the other format.

Installation :

Add this line on your composer.json require

```
        "activpik/entity-manager-generator-bundle": "dev-master"

```

Update your deps with composer

```
	php composer.phar update

```

Update your AppKernel File :

```
$bundles = array(
...
new Activpik\EntityManagerGeneratorBundle\ActivpikEntityManagerGeneratorBundle(),
...
);

```

Usage

```
php app/console doctrine:generate:entitymanager ActivpikManagerBundle:Video

```

This command generates an VideoManager class in the same directory of your Video Entity.

Calling the entity manager in a controller :

```
$this->get("activpik_manager.video_manager");

```

Get the Doctrine Entity Repository

```
$this->get("activpik_manager.video_manager")->getRepository();

```

What is generated by this tool : A Basic Entity Manager in the Entity Directory

For our previous sample the result is : In src/Activpik/ManagerBundle/Entity/VideoManager.php

```
