Releases: andanteproject/shared-query-builder
Releases · andanteproject/shared-query-builder
Fix: add missing interface check
Fix an issue with doctrine resolve_target_entities.
Update to doctrine/ORM 3.0
2.0.0 update to doctrine/orm 3.0
1.1.2
Bug fix
1.1.1 Merge branch 'hotfix/with-alias-function' into main
New immutable parameters
This release introduces immutable parameters and some useful functions around them:
// $sqb instanceof Andante\Doctrine\ORM\SharedQueryBuilder
// set a common Query Builder parameter, as you are used to
$sqb->setParameter('parameter_name', 'parameterValue');
// set an immutable common Query Builder parameter. It cannot be changed otherwise an exception will be raised.
$sqb->setImmutableParameter('immutable_parameter_name', 'parameterValue');
// get a collection of all query parameters (commons + immutables!)
$sqb->getParameters();
// get a collection of all immutable query parameters (exclude commons)
$sqb->getImmutableParameters();
// Sets a parameter and return parameter name as string instead of $sqb.
$sqb->withParameter(':parameter_name', 'parameterValue');
$sqb->withImmutableParameter(':immutable_parameter_name', 'parameterValue');
// This allows you to write something like this:
$sqb->expr()->eq('building.name', $sqb->withParameter(':building_name_value', $buildingNameFilter));
// The two following methods sets "unique" parameters. See "Unique parameters" doc section for more...
$sqb->withUniqueParameter(':parameter_name', 'parameterValue');
$sqb->withUniqueImmutableParameter(':parameter_name', 'parameterValue');
First stable release
1.0.0 Merge branch 'release/1.0.0' into main