Skip to content

Instantly share code, notes, and snippets.

@edwinyoyada
edwinyoyada / IfFunction.php
Created November 24, 2016 08:30
Doctrine SQL If Function
<?php
namespace Your\PathToBundle\DQL;
use Doctrine\ORM\Query\Lexer;
use Doctrine\ORM\Query\AST\Functions\FunctionNode;
use Doctrine\ORM\Query\Parser;
use Doctrine\ORM\Query\SqlWalker;
/**
* Created by PhpStorm.