Files
2017-11-14 15:04:59 +01:00

41 lines
816 B
PHP

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