79 if (!$this->getTypeId()) {
82 if (!$this->getAttributeId()) {
83 throw new LocalizedException(
__(
'The EAV attribute is invalid. Verify the attribute and try again.'));
86 return parent::beforeSave();
96 if (!$this->
hasData(
'attribute')) {
97 $attribute = $this->_eavConfig->getAttribute($this->getEntityTypeId(), $this->getAttributeId());
100 return $this->
_getData(
'attribute');
setData($key, $value=null)