From 30088fe529d01156287d54c294d0fd82e811dcd2 Mon Sep 17 00:00:00 2001 From: Martin Georgiev Date: Thu, 3 Aug 2017 11:52:06 +0100 Subject: [PATCH] Fix double spacing in exception's message --- lib/Doctrine/ORM/ORMInvalidArgumentException.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Doctrine/ORM/ORMInvalidArgumentException.php b/lib/Doctrine/ORM/ORMInvalidArgumentException.php index accf1cc1517..6aa270c782f 100644 --- a/lib/Doctrine/ORM/ORMInvalidArgumentException.php +++ b/lib/Doctrine/ORM/ORMInvalidArgumentException.php @@ -93,7 +93,7 @@ static public function newEntityFoundThroughRelationship(array $assoc, $entry) . $assoc['sourceEntity'] . "#" . $assoc['fieldName'] . "' that was not" . " configured to cascade persist operations for entity: " . self::objToStr($entry) . "." . " To solve this issue: Either explicitly call EntityManager#persist()" - . " on this unknown entity or configure cascade persist " + . " on this unknown entity or configure cascade persist" . " this association in the mapping for example @ManyToOne(..,cascade={\"persist\"})." . (method_exists($entry, '__toString') ? "": " If you cannot find out which entity causes the problem" . " implement '" . $assoc['targetEntity'] . "#__toString()' to get a clue."));