[TYPO3-mvc] RFC #8718: throw exception if a class to be reflected does not exist

Felix Oertel mehl at foertel.com
Wed Jul 7 00:57:35 CEST 2010


Hi,

This is an SVN patch request.

Type: Bugfix

Bugtracker reference:
http://forge.typo3.org/issues/show/8718

Feature:
the DataMapper runs

$this->reflectionService->getClassSchema($className)->getProperty($propertyName);

which results in an PHP fatal error when NULL is returned by 
buildClassSchema() in the persistence service because a class is not found.



Solution:
throw an exception instead

Note:
we don't have to stay in sync with FLOW3 here because they do not return 
anything

regards, foertel


More information about the TYPO3-project-typo3v4mvc mailing list