File tree Expand file tree Collapse file tree 2 files changed +21
-20
lines changed
app/code/Magento/Cms/Model/ResourceModel/Block Expand file tree Collapse file tree 2 files changed +21
-20
lines changed Original file line number Diff line number Diff line change @@ -78,24 +78,4 @@ protected function _renderFiltersBefore()
78
78
$ entityMetadata = $ this ->metadataPool ->getMetadata (BlockInterface::class);
79
79
$ this ->joinStoreRelationTable ('cms_block_store ' , $ entityMetadata ->getLinkField ());
80
80
}
81
-
82
- /**
83
- * Create all ids retrieving select with limitation
84
- * Backward compatibility with EAV collection
85
- *
86
- * @param int $limit
87
- * @param int $offset
88
- * @return \Magento\Eav\Model\Entity\Collection\AbstractCollection
89
- */
90
- protected function _getAllIdsSelect ($ limit = null , $ offset = null )
91
- {
92
- $ idsSelect = clone $ this ->getSelect ();
93
- $ idsSelect ->reset (\Magento \Framework \DB \Select::ORDER );
94
- $ idsSelect ->reset (\Magento \Framework \DB \Select::LIMIT_COUNT );
95
- $ idsSelect ->reset (\Magento \Framework \DB \Select::LIMIT_OFFSET );
96
- $ idsSelect ->reset (\Magento \Framework \DB \Select::COLUMNS );
97
- $ idsSelect ->columns ($ this ->getResource ()->getIdFieldName (), 'main_table ' );
98
- $ idsSelect ->limit ($ limit , $ offset );
99
- return $ idsSelect ;
100
- }
101
81
}
Original file line number Diff line number Diff line change @@ -91,12 +91,33 @@ public function setAggregations($aggregations)
91
91
* @param int $limit
92
92
* @param int $offset
93
93
* @return array
94
+ * @throws \Magento\Framework\Exception\LocalizedException
94
95
*/
95
96
public function getAllIds ($ limit = null , $ offset = null )
96
97
{
97
98
return $ this ->getConnection ()->fetchCol ($ this ->_getAllIdsSelect ($ limit , $ offset ), $ this ->_bindParams );
98
99
}
99
100
101
+ /**
102
+ * Create all ids retrieving select with limitation
103
+ *
104
+ * @param int $limit
105
+ * @param int $offset
106
+ * @return \Magento\Framework\DB\Select
107
+ * @throws \Magento\Framework\Exception\LocalizedException
108
+ */
109
+ protected function _getAllIdsSelect ($ limit = null , $ offset = null )
110
+ {
111
+ $ idsSelect = clone $ this ->getSelect ();
112
+ $ idsSelect ->reset (\Magento \Framework \DB \Select::ORDER );
113
+ $ idsSelect ->reset (\Magento \Framework \DB \Select::LIMIT_COUNT );
114
+ $ idsSelect ->reset (\Magento \Framework \DB \Select::LIMIT_OFFSET );
115
+ $ idsSelect ->reset (\Magento \Framework \DB \Select::COLUMNS );
116
+ $ idsSelect ->columns ($ this ->getResource ()->getIdFieldName (), 'main_table ' );
117
+ $ idsSelect ->limit ($ limit , $ offset );
118
+ return $ idsSelect ;
119
+ }
120
+
100
121
/**
101
122
* Get search criteria.
102
123
*
You can’t perform that action at this time.
0 commit comments