Skip to content

valentinloiseau/doctrine-tool

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Doctrine Tool

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();