Commit d923345c authored by Bertrand Gauthier's avatar Bertrand Gauthier
Browse files

AJout nouveau module zf-doctrine-querybuilder permettant d'inclure facilement...

AJout nouveau module zf-doctrine-querybuilder permettant d'inclure facilement des filtres ou tris dans les requêtes
parent 7a19751d
......@@ -4,7 +4,7 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file",
"This file is @generated automatically"
],
"content-hash": "ec968e437048d805e7787e06016a2233",
"content-hash": "3afec53d1de13c19dfa549c231b47667",
"packages": [
{
"name": "api-skeletons/zf-doctrine-module-zend-hydrator",
......@@ -3795,6 +3795,80 @@
],
"time": "2018-05-07T15:44:42+00:00"
},
{
"name": "zfcampus/zf-doctrine-querybuilder",
"version": "1.6.0",
"source": {
"type": "git",
"url": "https://github.com/zfcampus/zf-doctrine-querybuilder.git",
"reference": "bf24e8ff48f8ae6f072e1237cc7c15074d3954f1"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/zfcampus/zf-doctrine-querybuilder/zipball/bf24e8ff48f8ae6f072e1237cc7c15074d3954f1",
"reference": "bf24e8ff48f8ae6f072e1237cc7c15074d3954f1",
"shasum": ""
},
"require": {
"doctrine/doctrine-module": "^1.2",
"php": "^5.6 || ^7.0",
"zendframework/zend-hydrator": "^1.1 || ^2.2.1",
"zendframework/zend-modulemanager": "^2.7.2",
"zendframework/zend-mvc": "^2.7.13 || ^3.0.2",
"zendframework/zend-servicemanager": "^2.7.6 || ^3.1.1",
"zfcampus/zf-api-problem": "^1.2.2",
"zfcampus/zf-apigility-doctrine": "^2.1",
"zfcampus/zf-hal": "^1.4.2"
},
"require-dev": {
"doctrine/doctrine-mongo-odm-module": "^1.0",
"doctrine/doctrine-orm-module": "^1.1",
"phpunit/phpunit": "^5.7.26",
"zendframework/zend-coding-standard": "~1.0.0",
"zendframework/zend-i18n": "^2.7.3",
"zendframework/zend-log": "^2.9.1",
"zendframework/zend-serializer": "^2.8",
"zendframework/zend-test": "^2.6.1 || ^3.0.1",
"zfcampus/zf-apigility-provider": "^1.2"
},
"suggest": {
"doctrine/doctrine-mongo-odm-module": "^1.0, if you wish to use the Doctrine ODM",
"doctrine/doctrine-orm-module": "^1.1, if you wish to use the Doctrine ORM",
"ext/mongo": "Mongo extension, if using ODM"
},
"type": "library",
"extra": {
"branch-alias": {
"dev-master": "1.6-dev",
"dev-develop": "1.7-dev"
},
"zf": {
"module": [
"ZF\\Doctrine\\QueryBuilder"
]
}
},
"autoload": {
"psr-4": {
"ZF\\Doctrine\\QueryBuilder\\": "src/"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"BSD-3-Clause"
],
"description": "Apigility Doctrine QueryBuilder module",
"homepage": "https://apigility.org",
"keywords": [
"ZendFramework",
"api",
"apigility",
"doctrine",
"filter",
"zf"
],
"time": "2018-01-17T12:57:48+00:00"
},
{
"name": "zfcampus/zf-hal",
"version": "1.5.0",
......
<?php
/**
* @license http://opensource.org/licenses/BSD-3-Clause BSD-3-Clause
* @copyright Copyright (c] 2013-2016 Zend Technologies USA Inc. (http://www.zend.com]
*/
namespace ZF\Doctrine\QueryBuilder;
use Zend\ServiceManager\Factory\InvokableFactory;
return [
// 'zf-apigility-doctrine-query-provider' => [
// 'aliases' => [
// 'default_orm' => Query\Provider\DefaultOrm::class,
// 'default_odm' => Query\Provider\DefaultOdm::class,
// ],
// 'factories' => [
// Query\Provider\DefaultOrm::class => Query\Provider\DefaultOrmFactory::class,
// Query\Provider\DefaultOdm::class => Query\Provider\DefaultOdmFactory::class,
// ],
// ],
'zf-doctrine-querybuilder-options' => [
'filter_key' => 'filter',
'order_by_key' => 'order-by',
],
'zf-doctrine-querybuilder-orderby-orm' => [
'aliases' => [
'field' => OrderBy\ORM\Field::class,
],
'factories' => [
OrderBy\ORM\Field::class => InvokableFactory::class,
],
],
'zf-doctrine-querybuilder-orderby-odm' => [
'aliases' => [
'field' => OrderBy\ODM\Field::class,
],
'factories' => [
OrderBy\ODM\Field::class => InvokableFactory::class,
],
],
'zf-doctrine-querybuilder-filter-orm' => [
'aliases' => [
'eq' => Filter\ORM\Equals::class,
'neq' => Filter\ORM\NotEquals::class,
'lt' => Filter\ORM\LessThan::class,
'lte' => Filter\ORM\LessThanOrEquals::class,
'gt' => Filter\ORM\GreaterThan::class,
'gte' => Filter\ORM\GreaterThanOrEquals::class,
'isnull' => Filter\ORM\IsNull::class,
'isnotnull' => Filter\ORM\IsNotNull::class,
'in' => Filter\ORM\In::class,
'notin' => Filter\ORM\NotIn::class,
'between' => Filter\ORM\Between::class,
'like' => Filter\ORM\Like::class,
'notlike' => Filter\ORM\NotLike::class,
'ismemberof' => Filter\ORM\IsMemberOf::class,
'orx' => Filter\ORM\OrX::class,
'andx' => Filter\ORM\AndX::class,
// 'innerjoin' => Filter\ORM\InnerJoin::class,
// 'leftjoin' => Filter\ORM\LeftJoin::class,
],
'factories' => [
Filter\ORM\Equals::class => InvokableFactory::class,
Filter\ORM\NotEquals::class => InvokableFactory::class,
Filter\ORM\LessThan::class => InvokableFactory::class,
Filter\ORM\LessThanOrEquals::class => InvokableFactory::class,
Filter\ORM\GreaterThan::class => InvokableFactory::class,
Filter\ORM\GreaterThanOrEquals::class => InvokableFactory::class,
Filter\ORM\IsNull::class => InvokableFactory::class,
Filter\ORM\IsNotNull::class => InvokableFactory::class,
Filter\ORM\In::class => InvokableFactory::class,
Filter\ORM\NotIn::class => InvokableFactory::class,
Filter\ORM\Between::class => InvokableFactory::class,
Filter\ORM\Like::class => InvokableFactory::class,
Filter\ORM\NotLike::class => InvokableFactory::class,
Filter\ORM\IsMemberOf::class => InvokableFactory::class,
Filter\ORM\OrX::class => InvokableFactory::class,
Filter\ORM\AndX::class => InvokableFactory::class,
// Filter\ORM\InnerJoin::class => InvokableFactory::class,
// Filter\ORM\LeftJoin::class => InvokableFactory::class,
],
],
'zf-doctrine-querybuilder-filter-odm' => [
'aliases' => [
'eq' => Filter\ODM\Equals::class,
'neq' => Filter\ODM\NotEquals::class,
'lt' => Filter\ODM\LessThan::class,
'lte' => Filter\ODM\LessThanOrEquals::class,
'gt' => Filter\ODM\GreaterThan::class,
'gte' => Filter\ODM\GreaterThanOrEquals::class,
'isnull' => Filter\ODM\IsNull::class,
'isnotnull' => Filter\ODM\IsNotNull::class,
'in' => Filter\ODM\In::class,
'notin' => Filter\ODM\NotIn::class,
'between' => Filter\ODM\Between::class,
'like' => Filter\ODM\Like::class,
'regex' => Filter\ODM\Regex::class,
],
'factories' => [
Filter\ODM\Equals::class => InvokableFactory::class,
Filter\ODM\NotEquals::class => InvokableFactory::class,
Filter\ODM\LessThan::class => InvokableFactory::class,
Filter\ODM\LessThanOrEquals::class => InvokableFactory::class,
Filter\ODM\GreaterThan::class => InvokableFactory::class,
Filter\ODM\GreaterThanOrEquals::class => InvokableFactory::class,
Filter\ODM\IsNull::class => InvokableFactory::class,
Filter\ODM\IsNotNull::class => InvokableFactory::class,
Filter\ODM\In::class => InvokableFactory::class,
Filter\ODM\NotIn::class => InvokableFactory::class,
Filter\ODM\Between::class => InvokableFactory::class,
Filter\ODM\Like::class => InvokableFactory::class,
Filter\ODM\Regex::class => InvokableFactory::class,
],
],
];
......@@ -31,6 +31,7 @@ return [
'Phpro\\DoctrineHydrationModule',
'ZF\\Apigility\\Doctrine\\Server',
'UnicaenOracle',
'ZF\Doctrine\QueryBuilder',
'Application',
'ImportData',
];
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment