diff --git a/lib/Doctrine/ORM/ORMInvalidArgumentException.php b/lib/Doctrine/ORM/ORMInvalidArgumentException.php index 796d2c5a515..68bb6f91dff 100644 --- a/lib/Doctrine/ORM/ORMInvalidArgumentException.php +++ b/lib/Doctrine/ORM/ORMInvalidArgumentException.php @@ -216,11 +216,7 @@ public static function invalidIdentifierBindingEntity() */ public static function invalidAssociation(ClassMetadata $targetClass, $assoc, $actualValue) { - $expectedType = 'Doctrine\Common\Collections\Collection|array'; - - if (($assoc['type'] & ClassMetadata::TO_ONE) > 0) { - $expectedType = $targetClass->getName(); - } + $expectedType = $targetClass->getName(); return new self(sprintf( 'Expected value of type "%s" for association field "%s#$%s", got "%s" instead.',