This library gives you a new way for writing queries. Using the Specification pattern you will get small Specification classes that are highly reusable.
The AVG function as argument to Spec::fun() is not longer supported, use Spec::AVG() instead.
The AVG function as argument to Happyr\DoctrineSpecification\Operand\PlatformFunction is not longer supported,
use Happyr\DoctrineSpecification\Operand\PlatformFunction\Avg instead.
Before:
new PlatformFunction('AVG', 'field_name');
Spec::fun('AVG', 'field_name');
After:
new Avg('field_name');
Spec::AVG('field_name');
The MIN function as argument to Spec::fun() is not longer supported, use Spec::MIN() instead.
The MIN function as argument to Happyr\DoctrineSpecification\Operand\PlatformFunction is not longer supported,
use Happyr\DoctrineSpecification\Operand\PlatformFunction\Min instead.
Before:
new PlatformFunction('MIN', 'field_name');
Spec::fun('MIN', 'field_name');
After:
new Min('field_name');
Spec::MIN('field_name');
The MAX function as argument to Spec::fun() is not longer supported, use Spec::MAX() instead.
The MAX function as argument to Happyr\DoctrineSpecification\Operand\PlatformFunction is not longer supported,
use Happyr\DoctrineSpecification\Operand\PlatformFunction\Max instead.
Before:
new PlatformFunction('MAX', 'field_name');
Spec::fun('MAX', 'field_name');
After:
new Max('field_name');
Spec::MAX('field_name');
The SUM function as argument to Spec::fun() is not longer supported, use Spec::SUM() instead.
The SUM function as argument to Happyr\DoctrineSpecification\Operand\PlatformFunction is not longer supported,
use Happyr\DoctrineSpecification\Operand\PlatformFunction\Sum instead.
Before:
new PlatformFunction('SUM', 'field_name');
Spec::fun('SUM', 'field_name');
Allow use
DISTINCT
inAVG
,MAX
,MIN
,SUM
aggregate functions.Doctrine Aggregate Expressions
Upgrade
The
AVG
function as argument toSpec::fun()
is not longer supported, useSpec::AVG()
instead.The
AVG
function as argument toHappyr\DoctrineSpecification\Operand\PlatformFunction
is not longer supported, useHappyr\DoctrineSpecification\Operand\PlatformFunction\Avg
instead.Before:
After:
The
MIN
function as argument toSpec::fun()
is not longer supported, useSpec::MIN()
instead.The
MIN
function as argument toHappyr\DoctrineSpecification\Operand\PlatformFunction
is not longer supported, useHappyr\DoctrineSpecification\Operand\PlatformFunction\Min
instead.Before:
After:
The
MAX
function as argument toSpec::fun()
is not longer supported, useSpec::MAX()
instead.The
MAX
function as argument toHappyr\DoctrineSpecification\Operand\PlatformFunction
is not longer supported, useHappyr\DoctrineSpecification\Operand\PlatformFunction\Max
instead.Before:
After:
The
SUM
function as argument toSpec::fun()
is not longer supported, useSpec::SUM()
instead.The
SUM
function as argument toHappyr\DoctrineSpecification\Operand\PlatformFunction
is not longer supported, useHappyr\DoctrineSpecification\Operand\PlatformFunction\Sum
instead.Before:
After: