Project

General

Profile

Actions

Bug #84864

closed

setEnableFieldsToBeIgnored(array("endtime")) not work

Added by Schu Miel over 6 years ago. Updated over 6 years ago.

Status:
Rejected
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2018-04-25
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
6.2
PHP Version:
5.3
Tags:
Complexity:
Is Regression:
Sprint Focus:

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?

Actions #1

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.

Actions

Also available in: Atom PDF