Skip to content

Doctrine ORM Query SQL formatting, with parameters, to make runnable queries

License

Notifications You must be signed in to change notification settings

CamelotProject/doctrine-query-sql-formatter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Doctrine Query SQL Formatter

Usage

<?php

use Camelot\DoctrineQueryFormatter\QuerySqlFormatter;
use Doctrine\ORM\Query;

/** @var Query $query */

$formatter = new QuerySqlFormatter();
$string = $formatter->replaceQueryParameters($query->getSQL(), $query->getParameters()->toArray());

echo $string;

About

Doctrine ORM Query SQL formatting, with parameters, to make runnable queries

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages