first commit

This commit is contained in:
2025-08-02 16:30:27 +02:00
commit 23646bfcee
14851 changed files with 1750626 additions and 0 deletions

View File

@@ -0,0 +1,40 @@
<?php
namespace KupShop\DevelopmentBundle\Query;
use Doctrine\DBAL\Connection;
class QueryBuilder extends \Query\QueryBuilder
{
protected static $qb = [];
public function __construct(Connection $connection)
{
self::$qb[] = $this;
parent::__construct($connection);
}
public static function getPendingQueryBuilders()
{
return self::$qb;
}
public function getSQL()
{
$this->markExecuted();
return parent::getSQL();
}
protected function markExecuted()
{
$found = array_search($this, self::$qb);
if ($found === false) {
return;
}
unset(self::$qb[$found]);
}
}