Skip to content

Instantly share code, notes, and snippets.

@fabarea
Created October 18, 2013 16:14
Show Gist options
  • Save fabarea/7043904 to your computer and use it in GitHub Desktop.
Save fabarea/7043904 to your computer and use it in GitHub Desktop.
DAM 2 FAL
if (!empty($GLOBALS['TCA'][$rowMmRefInfo['tablenames']]['ctrl']['languageField'])) {
$fields .= ',sys_language_uid';
}
$existingReferenceForeign = $this->damfalfileRepository->selectOneRowQuery($fields, $rowMmRefInfo['tablenames'], "uid = '" . $rowMmRefInfo['uid_foreign'] . "' and deleted != 1");
if (!empty($GLOBALS['TCA'][$rowMmRefInfo['tablenames']]['ctrl']['languageField'])) {
$existingReferenceForeign["sys_language_uid"] = 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment