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

Jochen Rau jochen.rau at typoplanet.de
Wed Jul 21 11:34:51 CEST 2010


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.

Regards
Jochen


More information about the TYPO3-project-typo3v4mvc mailing list