Skip to content

Commit

Permalink
Merge pull request #6601 from martin-georgiev/master
Browse files Browse the repository at this point in the history
Fix double spacing in "cascade persist missing" exception message
  • Loading branch information
Ocramius committed Aug 3, 2017
2 parents 6744b48 + 30088fe commit 2b8acb9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Doctrine/ORM/ORMInvalidArgumentException.php
Expand Up @@ -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."));
Expand Down

0 comments on commit 2b8acb9

Please sign in to comment.