[TYPO3-mvc] RFC #8494: Extbase does not restrict queries to use only properties

Helmut Hummel helmut at typo3.org
Thu Jul 22 08:59:11 CEST 2010


Hi Jochen,

On 21.07.10 11:34, Jochen Rau wrote:
> This is an SVN patch request.
> 
> Type: Bugfix
> 
> Bugtracker references:
> http://forge.typo3.org/issues/8494
> 
> Branches:
> 1.2, 1.3
> 
> Problem:
> Extbase does not restrict queries to use only properties
> 
> Solution:
> If a string other than a property name is passed to a method of the Query object, an UnknownProperty exception should be thrown. Whether it is a property name or not can be determined by asking the ReflectionService.
> 
> Notes:
> This can be a breaking change if somebody (mis)uses the Query object to query for fieldnames whithout implementing an according property in his domain model, like in $query->equals('tstamp', 1234567).
> 
> Please find the patch attached to the issue on the tracker.

Thanks for taking care. That's exactly how I expected it to be, thus

+1 by reading.

Regards Helmut


More information about the TYPO3-project-typo3v4mvc mailing list