1
0
mirror of synced 2025-02-02 21:41:45 +03:00

Merge pull request #6601 from martin-georgiev/master

Fix double spacing in "cascade persist missing" exception message
This commit is contained in:
Marco Pivetta 2017-08-03 21:36:58 +02:00 committed by GitHub
commit 2b8acb9907

View File

@ -93,7 +93,7 @@ class ORMInvalidArgumentException extends \InvalidArgumentException
. $assoc['sourceEntity'] . "#" . $assoc['fieldName'] . "' that was not" . $assoc['sourceEntity'] . "#" . $assoc['fieldName'] . "' that was not"
. " configured to cascade persist operations for entity: " . self::objToStr($entry) . "." . " configured to cascade persist operations for entity: " . self::objToStr($entry) . "."
. " To solve this issue: Either explicitly call EntityManager#persist()" . " 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\"})." . " this association in the mapping for example @ManyToOne(..,cascade={\"persist\"})."
. (method_exists($entry, '__toString') ? "": " If you cannot find out which entity causes the problem" . (method_exists($entry, '__toString') ? "": " If you cannot find out which entity causes the problem"
. " implement '" . $assoc['targetEntity'] . "#__toString()' to get a clue.")); . " implement '" . $assoc['targetEntity'] . "#__toString()' to get a clue."));