init
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
<?php
|
||||
|
||||
namespace Stemcell\ProductImport\Model\ResourceModel;
|
||||
|
||||
use Magento\Framework\Model\ResourceModel\Db\AbstractDb;
|
||||
|
||||
class ImportTask extends AbstractDb
|
||||
{
|
||||
protected function _construct()
|
||||
{
|
||||
$this->_init('stemcell_import_task', 'task_id');
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
<?php
|
||||
|
||||
namespace Stemcell\ProductImport\Model\ResourceModel\ImportTask;
|
||||
|
||||
use Magento\Framework\Model\ResourceModel\Db\Collection\AbstractCollection;
|
||||
use Stemcell\ProductImport\Model\ImportTask;
|
||||
|
||||
class Collection extends AbstractCollection
|
||||
{
|
||||
protected function _construct()
|
||||
{
|
||||
$this->_init(
|
||||
ImportTask::class,
|
||||
\Stemcell\ProductImport\Model\ResourceModel\ImportTask::class
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user