Update ORMInvalidArgumentException.php
remove added `value` to exception
This commit is contained in:
parent
d1a2655090
commit
83de071c00
@ -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.');
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user