@@ -85,7 +85,7 @@ public function __toString(): string
85
85
. 'persist operations for entity: stdClass@ ' . spl_object_id ($ entity1 )
86
86
. '. To solve this issue: Either explicitly call EntityManager#persist() on this unknown entity '
87
87
. '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 '
89
89
. 'implement \'baz1#__toString() \' to get a clue. ' ,
90
90
],
91
91
'two entities found ' => [
@@ -104,13 +104,13 @@ public function __toString(): string
104
104
. 'cascade persist operations for entity: stdClass@ ' . spl_object_id ($ entity1 ) . '. '
105
105
. 'To solve this issue: Either explicitly call EntityManager#persist() on this unknown entity '
106
106
. '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 '
108
108
. 'implement \'baz1#__toString() \' to get a clue. ' . "\n"
109
109
. ' * A new entity was found through the relationship \'foo2#bar2 \' that was not configured to '
110
110
. 'cascade persist operations for entity: stdClass@ ' . spl_object_id ($ entity2 ) . '. To solve '
111
111
. 'this issue: Either explicitly call EntityManager#persist() on this unknown entity or '
112
112
. '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 '
114
114
. 'implement \'baz2#__toString() \' to get a clue. ' ,
115
115
],
116
116
'two entities found, one is stringable ' => [
@@ -124,7 +124,7 @@ public function __toString(): string
124
124
. 'persist operations for entity: ThisIsAStringRepresentationOfEntity3 '
125
125
. '. To solve this issue: Either explicitly call EntityManager#persist() on this unknown entity '
126
126
. 'or configure cascade persist this association in the mapping for example '
127
- . '@ ManyToOne(.., cascade={" persist"}) . ' ,
127
+ . '#[ORM\ ManyToOne(..., cascade: [ \' persist \' ])] . ' ,
128
128
],
129
129
];
130
130
}
0 commit comments