Bug #84864
closedsetEnableFieldsToBeIgnored(array("endtime")) not work
0%
Description
Hi,
I want to access the database field "endtime".
According to many sources, I have collected the following:
[code]public function findAllForm() {
$query = $this->createQuery();
$querySettings = $query->getQuerySettings();
$query->getQuerySettings()->setIgnoreEnableFields(true);
$query->getQuerySettings()->setEnableFieldsToBeIgnored(array("endtime"));
$query->setQuerySettings($querySettings);
return $query->execute();
}[/code]
Then call it up as follows:
[code]$allItems = $this->FormYouRepository->findAllForm();[/code]
If I then output the function via var_dump, this array will not be listed at all.
Where is my mistake?
Updated by Stephan Großberndt over 6 years ago
- Status changed from New to Rejected
Hi, this is the issue tracker for bugs in TYPO3 core. What you created as an issue is not a bug but a question on how to use the API in your extension.
In order to get support for questions like that please register in Slack https://forger.typo3.com/slack and ask your questions in channel #typo3-cms or use stackoverflow.
To answer your question: Your current settings only affect which objects are queried from the database, not what is included in your objects, so in order to see the endtime you have to extend your FormYou
domain model by a endtime property.