Skip to content

Latest commit

 

History

History
12 lines (12 loc) · 658 Bytes

2021-01-05-only-include-direct-relations-in-delete-violation-error-messages.md

File metadata and controls

12 lines (12 loc) · 658 Bytes
Error in user YAML: (<unknown>): found character that cannot start any token while scanning for the next token at line 5 column 16
---
title: Only include direct relations in delete violation error messages
issue: NEXT-13085
author: Tobias Berge
author_email: t.berge@shopware.com 
author_github: @tobiasberge
---

Core

  • Added new optional parameter $restrictDeleteOnlyFirstLevel in order to only include entities directly associated with the definition to the following methods:
    • Shopware\Core\Framework\DataAbstractionLayer\Dbal\EntityForeignKeyResolver::getAffectedDeleteRestrictions
    • Shopware\Core\Framework\DataAbstractionLayer\Dbal\EntityForeignKeyResolver::fetch
    • Shopware\Core\Framework\DataAbstractionLayer\Dbal\EntityForeignKeyResolver::fetchAssociation