Doctrine 1

PHP's is_subclass_of function causing failure in some contexts