https://github.com/tomcyr/orientdbbundle
Integrates Doctrine OrientDB ODM with Symfony2 with my custom persist and remove methods
https://github.com/tomcyr/orientdbbundle
Last synced: 6 months ago
JSON representation
Integrates Doctrine OrientDB ODM with Symfony2 with my custom persist and remove methods
- Host: GitHub
- URL: https://github.com/tomcyr/orientdbbundle
- Owner: tomcyr
- License: mit
- Created: 2013-02-28T00:41:11.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2016-12-16T11:07:54.000Z (over 8 years ago)
- Last Synced: 2024-12-06T02:09:32.598Z (6 months ago)
- Language: PHP
- Size: 8.79 KB
- Stars: 3
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
OrientDbBundle
==============Integrates Doctrine OrientDB ODM with Symfony2 with my custom persist and remove methods
## Requirements
* PHP 5.3+
* [Symfony2](http://symfony.com)
* [Doctrine OrientDB ODM](http://www.doctrine-project.org/projects/orientdb-odm.html)## Installation
### Composer
The preferred way to install this bundle is to rely on [Composer](http://getcomposer.org).
#### Method 1
Simply run assuming you have installed composer.phar or composer binary:
```bash
$ composer require concept-it/orient-db-bundle dev-master
```### Method 2
1. Add the following lines in your composer.json:
```js
{
"require": {
"concept-it/orient-db-bundle": "dev-master"
}
}
```2. Run the composer to download the bundle
```bash
$ php composer.phar update concept-it/orient-db-bundle
```### Add this bundle to your application's kernel
```php
// app/ApplicationKernel.php
public function registerBundles()
{
return array(
// ...
new ConceptIt\OrientDbBundle\ConceptItOrientDbBundle(),
// ...
);
}
```## Configuration
```yml
# 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
```php
/**
* @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 -
## License
OrientDbBundle is licensed under the MIT License - see the [LICENSE file](https://github.com/tomcyr/OrientDbBundle/blob/master/LICENSE) for details