@@ -85,7 +85,7 @@ public function __toString(): string
8585 . 'persist operations for entity: stdClass@ ' . spl_object_id ($ entity1 )
8686 . '. To solve this issue: Either explicitly call EntityManager#persist() on this unknown entity '
8787 . 'or configure cascade persist this association in the mapping for example '
88- . '@ ManyToOne(.., cascade={" persist"}) . If you cannot find out which entity causes the problem '
88+ . '#[ORM\ ManyToOne(..., cascade: [ \' persist \' ])] . If you cannot find out which entity causes the problem '
8989 . 'implement \'baz1#__toString() \' to get a clue. ' ,
9090 ],
9191 'two entities found ' => [
@@ -104,13 +104,13 @@ public function __toString(): string
104104 . 'cascade persist operations for entity: stdClass@ ' . spl_object_id ($ entity1 ) . '. '
105105 . 'To solve this issue: Either explicitly call EntityManager#persist() on this unknown entity '
106106 . 'or configure cascade persist this association in the mapping for example '
107- . '@ ManyToOne(.., cascade={" persist"}) . If you cannot find out which entity causes the problem '
107+ . '#[ORM\ ManyToOne(..., cascade: [ \' persist \' ])] . If you cannot find out which entity causes the problem '
108108 . 'implement \'baz1#__toString() \' to get a clue. ' . "\n"
109109 . ' * A new entity was found through the relationship \'foo2#bar2 \' that was not configured to '
110110 . 'cascade persist operations for entity: stdClass@ ' . spl_object_id ($ entity2 ) . '. To solve '
111111 . 'this issue: Either explicitly call EntityManager#persist() on this unknown entity or '
112112 . 'configure cascade persist this association in the mapping for example '
113- . '@ ManyToOne(.., cascade={" persist"}) . If you cannot find out which entity causes the problem '
113+ . '#[ORM\ ManyToOne(..., cascade: [ \' persist \' ])] . If you cannot find out which entity causes the problem '
114114 . 'implement \'baz2#__toString() \' to get a clue. ' ,
115115 ],
116116 'two entities found, one is stringable ' => [
@@ -124,7 +124,7 @@ public function __toString(): string
124124 . 'persist operations for entity: ThisIsAStringRepresentationOfEntity3 '
125125 . '. To solve this issue: Either explicitly call EntityManager#persist() on this unknown entity '
126126 . 'or configure cascade persist this association in the mapping for example '
127- . '@ ManyToOne(.., cascade={" persist"}) . ' ,
127+ . '#[ORM\ ManyToOne(..., cascade: [ \' persist \' ])] . ' ,
128128 ],
129129 ];
130130 }
0 commit comments