1
0
mirror of synced 2025-02-20 22:23:14 +03:00

Update ORMInvalidArgumentException.php

remove added `value` to exception
This commit is contained in:
flip111 2015-01-13 21:10:16 +01:00 committed by Marco Pivetta
parent d1a2655090
commit 83de071c00

View File

@ -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.');
}
/**