From 45cd2afd27046f1e129d57d80510331b0ebd46c1 Mon Sep 17 00:00:00 2001 From: Benjamin Eberlei Date: Sun, 11 Apr 2010 10:52:53 +0200 Subject: [PATCH] DDC-510 - Simplified Condition to check if Paths are set in AnnotationDriver --- lib/Doctrine/ORM/Mapping/Driver/AnnotationDriver.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); }