@@ 92-97 (lines=6) @@ | ||
89 | { |
|
90 | $result = []; |
|
91 | $select = $this->selectQuery($condition); |
|
92 | if ($rows = $select->execute()->fetchAll(\PDO::FETCH_ASSOC)) { |
|
93 | foreach ($rows as $row) { |
|
94 | $entity = $this->rowToEntity($row); |
|
95 | $result[$entity->getId()] = $entity; |
|
96 | } |
|
97 | } |
|
98 | ||
99 | return $result; |
|
100 | } |
|
@@ 162-167 (lines=6) @@ | ||
159 | $result = []; |
|
160 | $select = $this->selectQuery($condition); |
|
161 | $select->select(['t1.' . $field, 't1.' . $key]); |
|
162 | if ($rows = $select->execute()->fetchAll(\PDO::FETCH_ASSOC)) { |
|
163 | foreach ($rows as $row) { |
|
164 | $this->unserializeFields($row); |
|
165 | $result[$row[$key]] = $row[$field]; |
|
166 | } |
|
167 | } |
|
168 | ||
169 | return $result; |
|
170 | } |