0
votes

I want to access the database field endtime. According to many sources, I have collected the following:

public function findAllForm() {
$query = $this->createQuery();
$querySettings = $query->getQuerySettings();
$query->getQuerySettings()->setIgnoreEnableFields(true);
$query->getQuerySettings()->setEnableFieldsToBeIgnored(array("endtime"));
$query->setQuerySettings($querySettings);
return $query->execute();
}

Then call it as follows:

$allItems = $this->FormYouRepository->findAllForm();

If I then output via var_dump, this object will not be listed at all.

My typo3-version is 6.2

Where is my mistake?

1

1 Answers

0
votes

You have to check also the storagePid of your plugin. But you can call the $query->getQuerySettings()->setRespectStoragePage(false); to ignore the storagePid