From 67af9f185322cab387f49606b7e515c1826d4ba9 Mon Sep 17 00:00:00 2001 From: "Fabio B. Silva" Date: Mon, 26 Mar 2012 00:55:57 -0300 Subject: [PATCH] change comparison --- lib/Doctrine/ORM/Mapping/MappingException.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Doctrine/ORM/Mapping/MappingException.php b/lib/Doctrine/ORM/Mapping/MappingException.php index b966364d7..2dfd3d183 100644 --- a/lib/Doctrine/ORM/Mapping/MappingException.php +++ b/lib/Doctrine/ORM/Mapping/MappingException.php @@ -34,7 +34,7 @@ class MappingException extends \Doctrine\ORM\ORMException public static function identifierRequired($entityName) { - if (null != ($parent = get_parent_class($entityName))) { + if (null !== ($parent = get_parent_class($entityName))) { return new self(sprintf( 'No identifier/primary key specified for Entity "%s" sub classe of "%s". Every Entity must have an identifier/primary key.', $entityName, $parent @@ -154,7 +154,7 @@ class MappingException extends \Doctrine\ORM\ORMException public static function classIsNotAValidEntityOrMappedSuperClass($className) { - if (null != ($parent = get_parent_class($className))) { + if (null !== ($parent = get_parent_class($className))) { return new self(sprintf( 'Class "%s" sub classe of "%s" is not a valid entity or mapped super class.', $className, $parent