Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Entity.php
Go to the documentation of this file.
1 <?php
6 namespace Magento\Eav\Model;
7 
12 class Entity extends \Magento\Eav\Model\Entity\AbstractEntity
13 {
14  const DEFAULT_ENTITY_MODEL = \Magento\Eav\Model\Entity::class;
15 
16  const DEFAULT_ATTRIBUTE_MODEL = \Magento\Eav\Model\Entity\Attribute::class;
17 
18  const DEFAULT_BACKEND_MODEL = \Magento\Eav\Model\Entity\Attribute\Backend\DefaultBackend::class;
19 
20  const DEFAULT_FRONTEND_MODEL = \Magento\Eav\Model\Entity\Attribute\Frontend\DefaultFrontend::class;
21 
22  const DEFAULT_SOURCE_MODEL = \Magento\Eav\Model\Entity\Attribute\Source\Config::class;
23 
24  const DEFAULT_ENTITY_TABLE = 'eav_entity';
25 
26  const DEFAULT_ENTITY_ID_FIELD = 'entity_id';
27 
33  public function __construct(\Magento\Eav\Model\Entity\Context $context, $data = [])
34  {
35  parent::__construct($context, $data);
36  $this->setConnection($this->_resource->getConnection('eav'));
37  }
38 }
const DEFAULT_ATTRIBUTE_MODEL
Definition: Entity.php:16
__construct(\Magento\Eav\Model\Entity\Context $context, $data=[])
Definition: Entity.php:33
const DEFAULT_FRONTEND_MODEL
Definition: Entity.php:20
const DEFAULT_ENTITY_ID_FIELD
Definition: Entity.php:26