protected function _applySaveHash(EntityInterface $entity, string $saveHash): bool
    {
        $output = [];
        if (defined('PHPUNIT_TESTSUITE')) {
            $associations = [
                'article',
                'article.article'
            ];
        } else {
            $associations = $this->getAssociations();
        }

        if (empty($associations)) {
            return false;
        }

        foreach ($associations as $assoc) {
            $object = $this->_recursivelyExtractObject($assoc, $entity);

            if ($object === null) {
                continue;
            }

            $object->save_hash = $saveHash;
            $object->dirty('save_hash', false);
        }

        return true;
    }