42 lines
846 B
PHP
42 lines
846 B
PHP
<?php
|
|
|
|
namespace Wowow\Devis\Model;
|
|
|
|
use \Magento\Framework\Model\AbstractModel;
|
|
|
|
class ItemDevis extends AbstractModel
|
|
{
|
|
const ITEM_DEVIS_ID = 'entity_id'; // We define the id fieldname
|
|
|
|
/**
|
|
* Prefix of model events names
|
|
*
|
|
* @var string
|
|
*/
|
|
protected $_eventPrefix = 'item_devis'; // parent value is 'core_abstract'
|
|
|
|
/**
|
|
* Name of the event object
|
|
*
|
|
* @var string
|
|
*/
|
|
protected $_eventObject = 'item_devis'; // parent value is 'object'
|
|
|
|
/**
|
|
* Name of object id field
|
|
*
|
|
* @var string
|
|
*/
|
|
protected $_idFieldName = self::ITEM_DEVIS_ID; // parent value is 'id'
|
|
|
|
/**
|
|
* Initialize resource model
|
|
*
|
|
* @return void
|
|
*/
|
|
protected function _construct()
|
|
{
|
|
$this->_init('Wowow\Devis\Model\ResourceModel\ItemDevis');
|
|
}
|
|
|
|
} |