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

Martin Kutschker masi-no at spam-typo3.org
Wed Jul 7 10:46:25 CEST 2010


Am 07.07.2010 00:57, schrieb Felix Oertel:
> 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

Sounds reasonable and shouldn't hurt, so +1 by reading.

Masi


More information about the TYPO3-project-typo3v4mvc mailing list