[CORE][DB] Fix error in regex that prevented selecting collumns that are named the same way a column is
This commit is contained in:
parent
839fa070c7
commit
1960f6944f
|
@ -88,7 +88,7 @@ class DB
|
|||
*/
|
||||
public static function dql(string $query, array $params = [], array $options = [])
|
||||
{
|
||||
$query = preg_replace(F\map(self::$table_map, fn ($_, $s) => "/\\b{$s}\\b/"), self::$table_map, $query);
|
||||
$query = preg_replace(F\map(self::$table_map, fn ($_, $s) => "/(?<!\\.)\\b{$s}\\b/"), self::$table_map, $query);
|
||||
$q = new Query(self::$em);
|
||||
$q->setDQL($query);
|
||||
|
||||
|
|
Loading…
Reference in New Issue