valentinloiseau/doctrine-tool

v0.1.3 2020-01-16 11:06 UTC

This package is auto-updated.

Last update: 2024-09-16 21:45:20 UTC


README

Installation

$ composer require valentinloiseau/doctrine-tool

Usage

$qb = $this->createQueryBuilder('foo');

$result = $qb
    ->addSelect(
        Val\DoctrineTool\StringFunctions::getIndexStringStartBy($qb, 'foo.bar', 'myString')
    )
    ->orderBy('indexStartBy')
    ->getQuery()
    ->getResult();