2017 © Pedro Peláez
 

library doctrine-manager

A manager class for Doctrine

image

loevgaard/doctrine-manager

A manager class for Doctrine

  • Wednesday, September 27, 2017
  • by loevgaard
  • Repository
  • 1 Watchers
  • 0 Stars
  • 55 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Doctrine Manager

Latest Version on Packagist ![Software License][ico-license] Build Status ![Coverage Status][ico-scrutinizer] Quality Score ![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)

The Versions

27/09 2017

dev-master

9999999-dev https://github.com/loevgaard/doctrine-manager

A manager class for Doctrine

  Sources   Download

MIT

The Requires

 

The Development Requires

doctrine manager doctrine-manager

27/09 2017

v1.0.0

1.0.0.0 https://github.com/loevgaard/doctrine-manager

A manager class for Doctrine

  Sources   Download

MIT

The Requires

 

The Development Requires

doctrine manager doctrine-manager