/** * Entity type getter and lazy loader * * @return \Magento\Eav\Model\Entity\Type * @throws \Magento\Framework\Exception\LocalizedException */ public function getEntityType() { if (empty($this->_type)) { $this->setType(\Magento\Catalog\Model\Product::ENTITY); } return parent::getEntityType(); }