public function setFieldEntries(array &$fieldArray, $contentId = 0, $new = false)
    {
        $containerUpdateArray = [];
        if (isset($fieldArray['tx_gridelements_container'])) {
            if ((int)$fieldArray['tx_gridelements_container'] > 0 && $new) {
                $containerUpdateArray[(int)$fieldArray['tx_gridelements_container']] = 1;
            }
            if ((int)$fieldArray['tx_gridelements_container'] === 0) {
                $originalContainer = BackendUtility::getRecord(
                    'tt_content',
                    (int)$contentId,
                    'tx_gridelements_container,sys_language_uid'
                );
                if (!empty($originalContainer)) {
                    $containerUpdateArray[(int)$originalContainer['tx_gridelements_container']] = -1;
                }
            }
        }
        if (!empty($containerUpdateArray)) {
            $this->doGridContainerUpdate($containerUpdateArray);
        }
        $this->setFieldEntriesForGridContainers($fieldArray);
    }