swarmtech/doctrine

Swarmtech Doctrine

1.1.3 2020-01-30 01:45 UTC

This package is auto-updated.

Last update: 2024-02-29 04:04:55 UTC


README

Goal of this project is to stop using Entity Repositories and start working with query provider instead. Not sure if it's a good idea but it allow to split each query doctrine in it's own QueryProvider provider file. To implements query provider we had to extends the QueryBuilder and to create interface for it. Added query builder interfaces, query provider factory, single value hydrator.

Requirements

  • Doctrine 2

Installation

  1. Installation with composer
composer require swarmtech/doctrine:"^1.0"
  1. Enable module for Laminas by adding Swarmtech\\Doctrine in config/modules.config.php
return [
    "Swarmtech\\Doctrine",
];

Feature

  • QueryProviderFactory to create your QueryProvider classes
  • QueryBuilder Interfaces to make the use of QueryProvider easy

Issue reporting

If you have found a bug or if you have a feature request, please report them at this repository issues section.

Author

Gary Gitton

License

This project is licensed under the MIT license. See the LICENSE file for more info.