Make the conditions in joins in dynamic queries use Condition objects
Compare changes
@@ -127,6 +127,71 @@ public function condition($field, $value = NULL, $operator = '=') {
- Comment on lines +156 to +157
I picked
field2
, because in the rest of the existing classDrupal\Core\Database\Query\Condition
it is all about fields and not about columns. If this was a greenfield solution, I would go with column, only it is not. Again: if you after reading this still think we should change something, then I will do that.
@@ -225,7 +290,7 @@ public function compile(Connection $connection, PlaceholderInterface $queryPlace
@@ -281,7 +346,13 @@ public function compile(Connection $connection, PlaceholderInterface $queryPlace
Terminology - Personally, I prefer 'column' over 'field' when it comes to a database table.
I picked
field
, because in the rest of the existing classDrupal\Core\Database\Query\Condition
it is all about fields and not about columns. If this was a greenfield solution, I would go with column, only it is not. Again: if you after reading this still think we should change something, then I will do that.