Files
Mohan Ahuja 73d4d88408 ACP2E-726: Unable to query bulk operations by search criteria using REST Api
- Removed old unit test and added new unit test
2022-06-08 18:43:52 +05:30

33 lines
884 B
PHP

<?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
namespace Magento\AsynchronousOperations\Model\ResourceModel\Operation;
use Magento\AsynchronousOperations\Model\Operation;
use Magento\AsynchronousOperations\Model\ResourceModel\Operation as OperationResourceModel;
/**
* Class Collection for Magento Operation table
* @codeCoverageIgnore
*/
class Collection extends \Magento\Framework\Model\ResourceModel\Db\Collection\AbstractCollection
{
/**
* Define collection item type and corresponding table
*
* @return void
*/
protected function _construct()
{
$this->_init(
Operation::class,
OperationResourceModel::class
);
$this->setMainTable('magento_operation');
$this->_setIdFieldName(OperationResourceModel::TABLE_PRIMARY_KEY);
}
}