ORM use COALESCE

This commit is contained in:
Yuri Kuznetsov
2023-02-09 13:01:01 +02:00
parent e7fa98dc09
commit 03a69cb364
2 changed files with 7 additions and 7 deletions
@@ -2452,7 +2452,7 @@ abstract class BaseQueryComposer implements QueryComposer
$item = $this->getAlias($entity, $relationName) . '.' . $this->toDb($value);
$item = $this->quoteColumn($item);
$foreign[$i] = "IFNULL({$item}, '')";
$foreign[$i] = "COALESCE({$item}, '')";
}
$path = 'TRIM(CONCAT(' . implode(', ', $foreign). '))';