Skip to content

Commit 822db43

Browse files
committed
more more more...
1 parent 1e7a9e4 commit 822db43

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/Attribute/MetaModelSelect.php

+4-4
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,7 @@ public function buildFilterRulesForUsedOnly($filter, $idList = array())
337337
if (!empty($idList)) {
338338
$builder
339339
->where('id IN (:ids)')
340-
->setParameter('ids', $idList, Connection::PARAM_INT_ARRAY);
340+
->setParameter('ids', $idList, Connection::PARAM_STR_ARRAY);
341341
}
342342

343343
$arrUsedValues = $builder->execute()->fetchAll(\PDO::FETCH_COLUMN);
@@ -487,7 +487,7 @@ function ($item) {
487487
->from($this->getMetaModel()->getTableName())
488488
->where($this->getColName() . ' IN (:ids)')
489489
->groupBy($this->getColName())
490-
->setParameter('ids', $idList)
490+
->setParameter('ids', $idList, Connection::PARAM_STR_ARRAY)
491491
->execute();
492492

493493
while ($row = $query->fetch(\PDO::FETCH_ASSOC)) {
@@ -551,7 +551,7 @@ public function sortIds($idList, $strDirection)
551551
->select('id,' . $myColName)
552552
->from($this->getMetaModel()->getTableName())
553553
->where('id IN (:ids)')
554-
->setParameter('ids', $idList, Connection::PARAM_INT_ARRAY)
554+
->setParameter('ids', $idList, Connection::PARAM_STR_ARRAY)
555555
->execute();
556556

557557
$valueIds = array();
@@ -591,7 +591,7 @@ public function getDataFor($arrIds)
591591
->select($valueColumn . ', id')
592592
->from($this->getMetaModel()->getTableName())
593593
->where('id IN (:ids)')
594-
->setParameter('ids', $arrIds)
594+
->setParameter('ids', $arrIds, Connection::PARAM_STR_ARRAY)
595595
->execute();
596596

597597
$valueIds = array();

0 commit comments

Comments
 (0)