|
@@ -1643,10 +1643,11 @@ class Query implements ExpressionInterface, IteratorAggregate
|
|
|
*/
|
|
*/
|
|
|
protected function _conjugate($part, $append, $conjunction, $types)
|
|
protected function _conjugate($part, $append, $conjunction, $types)
|
|
|
{
|
|
{
|
|
|
|
|
+ $expression = $this->_parts[$part] ?: $this->newExpr();
|
|
|
if (empty($append)) {
|
|
if (empty($append)) {
|
|
|
|
|
+ $this->_parts[$part] = $expression;
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|
|
|
- $expression = $this->_parts[$part] ?: $this->newExpr();
|
|
|
|
|
|
|
|
|
|
if (!is_string($append) && is_callable($append)) {
|
|
if (!is_string($append) && is_callable($append)) {
|
|
|
$append = $append($this->newExpr(), $this);
|
|
$append = $append($this->newExpr(), $this);
|