Skip to content

Commit c9ea361

Browse files
committed
MAGETWO-71223: Deprecate getResource and getCollection
- remove version and let the tool handle this
1 parent 726bc80 commit c9ea361

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

app/code/Magento/Catalog/Model/AbstractModel.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ public function unsetData($key = null)
222222
* Get collection instance
223223
*
224224
* @return \Magento\Catalog\Model\ResourceModel\Collection\AbstractCollection
225-
* @deprecated 100.2.0 because collections should be used directly via factory
225+
* @deprecated because collections should be used directly via factory
226226
*/
227227
public function getResourceCollection()
228228
{

app/code/Magento/Catalog/Model/Product.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -501,7 +501,7 @@ public function getStoreId()
501501
* Get collection instance
502502
*
503503
* @return object
504-
* @deprecated 100.2.0 because collections should be used directly via factory
504+
* @deprecated because collections should be used directly via factory
505505
*/
506506
public function getResourceCollection()
507507
{

app/code/Magento/MediaStorage/Model/File/Storage/Database/AbstractDatabase.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ public function getConfigConnectionName()
9595
* Get resource instance
9696
*
9797
* @return \Magento\Framework\Model\ResourceModel\AbstractResource
98-
* @deprecated 100.2.0 because resource models should be used directly
98+
* @deprecated because resource models should be used directly
9999
*/
100100
protected function _getResource()
101101
{

0 commit comments

Comments
 (0)