dev-master
9999999-devIntegrates Doctrine OrientDB ODM with Symfony2 with my custom persist and remove methods.
MIT
The Requires
bundle odm db orient
Wallogit.com
2017 © Pedro Peláez
Integrates Doctrine OrientDB ODM with Symfony2 with my custom persist and remove methods.
Integrates Doctrine OrientDB ODM with Symfony2 with my custom persist and remove methods, (*1)
The preferred way to install this bundle is to rely on Composer., (*2)
Simply run assuming you have installed composer.phar or composer binary:, (*3)
$ composer require concept-it/orient-db-bundle dev-master
{
"require": {
"concept-it/orient-db-bundle": "dev-master"
}
}
$ php composer.phar update concept-it/orient-db-bundle
// app/ApplicationKernel.php
public function registerBundles()
{
return array(
// ...
new ConceptIt\OrientDbBundle\ConceptItOrientDbBundle(),
// ...
);
}
# 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"
/**
* @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;
}
Tomasz Cyrankowski - tomek@concept-it.pl, (*4)
OrientDbBundle is licensed under the MIT License - see the LICENSE file for details, (*5)
Integrates Doctrine OrientDB ODM with Symfony2 with my custom persist and remove methods.
MIT
bundle odm db orient