You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -32,40 +35,40 @@ class TranslatableClassMetadata
32
35
* Ein Mapping von Feldnamen in der Hauptklasse auf die Felder in der
33
36
* Übersetzungs-Klasse, in denen die jeweilige Übersetzung liegt.
34
37
*
35
-
* @var \ReflectionProperty[]
38
+
* @var ReflectionProperty[]
36
39
*/
37
40
protected$translationFieldMapping = [];
38
41
39
42
/**
40
43
* Die Eigenschaften der Haupt-Klasse, die übersetzbar sind; indiziert nach Feldnamen.
41
44
*
42
-
* @var \ReflectionProperty[]
45
+
* @var ReflectionProperty[]
43
46
*/
44
47
protected$translatedProperties = [];
45
48
46
49
/**
47
50
* Die Eigenschaft der Haupt-Klasse, die die Collection der Übersetzungen hält.
48
51
*
49
-
* @var \ReflectionProperty
52
+
* @var ReflectionProperty
50
53
*/
51
54
protected$translationsCollectionProperty;
52
55
53
56
/**
54
57
* Die Eigenschaft der Übersetzungs-Klasse, die als many-to-one auf die Haupt-Klasse verweist.
55
58
*
56
-
* @var \ReflectionProperty
59
+
* @var ReflectionProperty
57
60
*/
58
61
protected$translationMappingProperty;
59
62
60
63
/**
61
64
* Die Eigenschaft in der Übersetzungs-Klasse, die die Sprache einer Übersetzungsinstanz enhtält.
62
65
*
63
-
* @var \ReflectionProperty
66
+
* @var ReflectionProperty
64
67
*/
65
68
protected$translationLocaleProperty;
66
69
67
70
/**
68
-
* @var \ReflectionClass Die Übersetzungs-Klasse.
71
+
* @var ReflectionClass Die Übersetzungs-Klasse.
69
72
*/
70
73
protected$translationClass;
71
74
@@ -148,19 +151,19 @@ protected function assertNoAnnotationsArePresent()
148
151
protectedfunctionassertAnnotationsAreComplete()
149
152
{
150
153
if (null === $this->translationClass) {
151
-
thrownew\RuntimeException('The annotation with the translation class name is missing or incorrect, e.g. '.'@ORM\OneToMany(targetEntity="TestEntityTranslation", ...)');
154
+
thrownewRuntimeException('The annotation with the translation class name is missing or incorrect, e.g. '.'@ORM\OneToMany(targetEntity="TestEntityTranslation", ...)');
152
155
}
153
156
154
157
if (null === $this->translationLocaleProperty) {
155
-
thrownew\RuntimeException('The @Polyglot\Locale annotation at the language property of the translation class is missing or '.'incorrect');
158
+
thrownewRuntimeException('The @Polyglot\Locale annotation at the language property of the translation class is missing or '.'incorrect');
156
159
}
157
160
158
161
if (null === $this->translationMappingProperty) {
159
-
thrownew\RuntimeException('The attribute referenced in the mappedBy-Attribute of the @ORM\OneToMany(..., mappedBy="...") is '.'missing or incorrect');
162
+
thrownewRuntimeException('The attribute referenced in the mappedBy-Attribute of the @ORM\OneToMany(..., mappedBy="...") is '.'missing or incorrect');
160
163
}
161
164
162
165
if (0 === \count($this->translatedProperties)) {
163
-
thrownew\RuntimeException('No translatable attributes annotated with @Polyglot\Translatable were found');
166
+
thrownewRuntimeException('No translatable attributes annotated with @Polyglot\Translatable were found');
164
167
}
165
168
}
166
169
@@ -221,7 +224,7 @@ protected function findPrimaryLocale(Reader $reader, ClassMetadata $classMetadat
0 commit comments