Doctrine Manager
![Software License][ico-license]
![Coverage Status][ico-scrutinizer]
![Total Downloads][ico-downloads], (*1)
This is a Doctrine Manager primary for Symfony applications, but can be used in all applications using Doctrine., (*2)
Install
Via Composer, (*3)
``` bash
$ composer require loevgaard/doctrine-manager, (*4)
## Usage
Say you have an Entity named `YourEntity` then you will create a manager as easy as:
```php
<?php
namespace Loevgaard\DoctrineManager;
class YourManager extends Manager
{
}
if you want code completion or need to do some other stuff you can override the CRUD methods like so:, (*5)
<?php
namespace Loevgaard\DoctrineManager;
class YourManager extends Manager
{
/**
* @return YourEntity
*/
public function create()
{
return parent::create();
}
/**
* @param YourEntity $obj
*/
public function delete($obj)
{
parent::delete($obj);
}
/**
* @param YourEntity $obj
* @param bool $flush
*/
public function update($obj, $flush = true)
{
parent::update($obj, $flush);
}
}
Change log
Please see CHANGELOG for more information on what has changed recently., (*6)
Testing
bash
$ composer test
, (*7)
Contributing
Please see CONTRIBUTING and CODE_OF_CONDUCT for details., (*8)
Security
If you discover any security related issues, please email joachim@loevgaard.dk instead of using the issue tracker., (*9)
Credits
License
The MIT License (MIT). Please see License File for more information., (*10)