[FLOW3-general] ->getQuery()->execute() fails

Ferdinand Kuhl fcool at coolys.de
Wed Aug 17 17:15:38 CEST 2011


After some more investigation I do think I found the problem.

The problem arises through the wakeup-call, line 485. If there were no 
constraint, an NULL value gets set. If I inject an if($this->constraint) 
before, everything works like a charm.

Ferdinand Kuhl wrote:

> Hi List,
> 
> is it possible, that I found a bug?
> 
> Following happens:
> At a queryResult retrieved from findAll() i simply do $result->getQuery()-
>>execute().
> 
> I get an empty result. If I do comment out the try catch block (lines 113
> and 115-117) in
> 
FLOW3/Packages/Framework/TYPO3.FLOW3/Classes/Persistence/Doctrine/Query.php
> 
> I receive an Exception [Syntax Error] line 0, col -1: Error: Expected
> Literal, got end of string
> 
> If i do some stupid $result->getQuery->matching( SENSELESS CONSTRAINT HERE
> ) everything works as expected.
> 
> Greetings,
> Ferdinand Kuhl



More information about the FLOW3-general mailing list