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

Bastian Waidelich bastian at typo3.org
Thu Jul 8 20:53:08 CEST 2010


Bastian Waidelich wrote:

Hi me & co,

> In that case we should agree on the best way and get the two in sync
> again IMHO.

To be more specific: in this particular case I would rather catch the 
returned NULL in the DataMapper I guess..

$classShema = $this->reflectionService->getClassSchema($className);
if ($classShema === NULL) {
	throw [...]


And if *someone* adds a unit test case that checks for this exception, 
we could commit this right away ;)

Bastian


More information about the TYPO3-project-typo3v4mvc mailing list