2017 © Pedro Peláez
 

symfony-bundle orient-db-bundle

Integrates Doctrine OrientDB ODM with Symfony2 with my custom persist and remove methods.

image

concept-it/orient-db-bundle

Integrates Doctrine OrientDB ODM with Symfony2 with my custom persist and remove methods.

  • Friday, December 16, 2016
  • by concept-it
  • Repository
  • 1 Watchers
  • 3 Stars
  • 14 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

OrientDbBundle

Integrates Doctrine OrientDB ODM with Symfony2 with my custom persist and remove methods, (*1)

Requirements

Installation

Composer

The preferred way to install this bundle is to rely on Composer., (*2)

Method 1

Simply run assuming you have installed composer.phar or composer binary:, (*3)

$ composer require concept-it/orient-db-bundle dev-master

Method 2

  1. Add the following lines in your composer.json:
{
  "require": {
    "concept-it/orient-db-bundle": "dev-master"
  }
}
  1. Run the composer to download the bundle
$ php composer.phar update concept-it/orient-db-bundle

Add this bundle to your application's kernel

// app/ApplicationKernel.php
public function registerBundles()
{
    return array(
        // ...
        new ConceptIt\OrientDbBundle\ConceptItOrientDbBundle(),
        // ...
    );
}

Configuration

# app/config/config.yml
concept_it_orient_db:
    host:               "127.0.0.1"
    port:               2480
    user:               "user"
    password:           "password"
    dbname:             "dbname"
    proxy_dir:          "%kernel.root_dir%/cache"
    domain_dir:         "%kernel.root_dir%/../src/YourBundle/Entity"
    domain_namespace:   "YourBundle\Entity"

Example usage in Action

    /**
     * @Route("/api/test")
     */
    public function testAction()
    {
        $om = $this->get('conceptit.orientdb');
        $test = new \ConceptIt\SmartShopperBundle\Entity\Test();
        $test->setName('Johny Walker');
        $om->persist($test);
        var_dump($test);die;
    }

Authors

Tomasz Cyrankowski - tomek@concept-it.pl, (*4)

License

OrientDbBundle is licensed under the MIT License - see the LICENSE file for details, (*5)

The Versions

16/12 2016

dev-master

9999999-dev

Integrates Doctrine OrientDB ODM with Symfony2 with my custom persist and remove methods.

  Sources   Download

MIT

The Requires

 

bundle odm db orient