diff --git a/lib/Doctrine/ORM/ORMInvalidArgumentException.php b/lib/Doctrine/ORM/ORMInvalidArgumentException.php index 633ff5c60..02c0f99aa 100644 --- a/lib/Doctrine/ORM/ORMInvalidArgumentException.php +++ b/lib/Doctrine/ORM/ORMInvalidArgumentException.php @@ -188,22 +188,6 @@ class ORMInvalidArgumentException extends \InvalidArgumentException return new self("Binding entities to query parameters only allowed for entities that have an identifier."); } - /** - * @param object $relation - * @param string $fieldname - * @param mixed $value - * @return self - */ - public static function computeAssociationChangesError($relation, $fieldname, $value) - { - return new self(sprintf( - 'Expected an Object for relation %s::%s got %s instead.', - get_class($relation), - $fieldname, - is_object($value) ? get_class($value) : gettype($value) - )); - } - /** * @param ClassMetadata $targetClass * @param array $assoc