File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
lib/internal/Magento/Framework/DB Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -91,6 +91,12 @@ public function __construct(
91
91
* $select->where('id = :id');
92
92
* </code>
93
93
*
94
+ * You may also construct IN statements:
95
+ *
96
+ * <code>
97
+ * $select->where('entity_id IN (?)', ['1', '2', '3']);
98
+ * </code>
99
+ *
94
100
* Note that it is more correct to use named bindings in your
95
101
* queries for values other than strings. When you use named
96
102
* bindings, don't forget to pass the values when actually
@@ -101,7 +107,7 @@ public function __construct(
101
107
* </code>
102
108
*
103
109
* @param string $cond The WHERE condition.
104
- * @param string $value OPTIONAL A single value to quote into the condition.
110
+ * @param string|array|null $value OPTIONAL An optional single or array value to quote into the condition.
105
111
* @param string|int|null $type OPTIONAL The type of the given value
106
112
* @return \Magento\Framework\DB\Select
107
113
*/
You can’t perform that action at this time.
0 commit comments