From 83de071c00c825ff94f61768ce800ed1c5c698e0 Mon Sep 17 00:00:00 2001 From: flip111 Date: Tue, 13 Jan 2015 21:10:16 +0100 Subject: [PATCH] Update ORMInvalidArgumentException.php remove added `value` to exception --- lib/Doctrine/ORM/ORMInvalidArgumentException.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/Doctrine/ORM/ORMInvalidArgumentException.php b/lib/Doctrine/ORM/ORMInvalidArgumentException.php index 8b10d0023..d0089d752 100644 --- a/lib/Doctrine/ORM/ORMInvalidArgumentException.php +++ b/lib/Doctrine/ORM/ORMInvalidArgumentException.php @@ -206,9 +206,7 @@ class ORMInvalidArgumentException extends \InvalidArgumentException */ public static function invalidAssociation($targetClass, $assoc, $entry) { - $ex = new self(gettype($entry) . (is_scalar($entry) ? ' "'.$entry.'"': '') . ' is not an Object.'); - $ex->value = $entry; - return $ex; + return new self(gettype($entry) . (is_scalar($entry) ? ' "'.$entry.'"': '') . ' is not an Object.'); } /**