Skip to content

Releases: andanteproject/shared-query-builder

Fix: add missing interface check

18 Mar 11:17
14b2b62
Compare
Choose a tag to compare

Update to doctrine/ORM 3.0

14 Jun 08:30
Compare
Choose a tag to compare
2.0.0

update to doctrine/orm 3.0

1.1.2

20 Oct 09:49
dd2eb54
Compare
Choose a tag to compare
  • Allow interfaces to be used (see);
  • Allowing cloning properly.

Bug fix

11 Mar 21:43
Compare
Choose a tag to compare
1.1.1

Merge branch 'hotfix/with-alias-function' into main

New immutable parameters

11 Mar 21:20
Compare
Choose a tag to compare

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

09 Mar 13:41
Compare
Choose a tag to compare
1.0.0

Merge branch 'release/1.0.0' into main