diff --git a/lib/Doctrine/ORM/Mapping/Driver/AnnotationDriver.php b/lib/Doctrine/ORM/Mapping/Driver/AnnotationDriver.php index 2f669cf07..ec3d92f7b 100644 --- a/lib/Doctrine/ORM/Mapping/Driver/AnnotationDriver.php +++ b/lib/Doctrine/ORM/Mapping/Driver/AnnotationDriver.php @@ -428,7 +428,7 @@ class AnnotationDriver implements Driver return $this->_classNames; } - if (count($this->_paths) == 0) { + if (!$this->_paths) { throw MappingException::pathRequired(); }