18 abstract class AbstractBackend implements \Magento\Eav\Model\Entity\Attribute\Backend\BackendInterface
115 if (empty($this->_table)) {
117 $this->_table = $this->
getAttribute()->getEntityType()->getValueTablePrefix();
119 $this->_table = $this->
getAttribute()->getBackendTable();
137 if (empty($this->_entityIdField)) {
139 $this->_entityIdField = $this->
getAttribute()->getEntityIdField();
141 $this->_entityIdField = $this->
getAttribute()->getEntityType()->getValueEntityIdField();
157 $this->_valueId = $valueId;
174 $this->_valueIds[
$entity->getId()] = $valueId;
201 return $this->_valueIds[
$entity->getId()];
211 if ($this->_defaultValue ===
null) {
213 $this->_defaultValue = $this->
getAttribute()->getDefaultValue();
215 $this->_defaultValue =
"";
234 $value = $object->getData($attrCode);
243 __(
'The "%1" attribute value is empty. Set the attribute and try again.',
$label)
258 __(
'The value of the "%1" attribute isn\'t unique. Set a unique value and try again.',
$label)
344 'attribute_id' => $this->
getAttribute()->getAttributeId(),
elseif(isset( $params[ 'redirect_parent']))
setEntityValueId($entity, $valueId)
getEntityValueId($entity)
getAffectedFields($object)