Skip to content

Commit 7c42442

Browse files
author
Olexii Korshenko
committed
MAGETWO-32974: DB Foreign Keys Management on the Application Level
- add validation logic for EAV models
1 parent b46c7d0 commit 7c42442

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

app/code/Magento/Eav/Model/Entity/AbstractEntity.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1182,6 +1182,8 @@ public function save(\Magento\Framework\Object $object)
11821182

11831183
$object->setParentId((int)$object->getParentId());
11841184

1185+
$this->objectRelationProcessor->validateDataIntegrity($this->getEntityTable(), $object->getData());
1186+
11851187
$this->_beforeSave($object);
11861188
$this->_processSaveData($this->_collectSaveData($object));
11871189
$this->_afterSave($object);

0 commit comments

Comments
 (0)