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
thrownewInvalidMappingException("Cannot use field - [{$field}] for slug storage, type is not valid and must be 'string' or 'text' in class - {$meta->name}");
if (empty($slug['fields']) || !is_array($slug['fields'])) {
68
-
thrownewInvalidMappingException("Slug must contain at least one field for slug generation in class - {$meta->name}");
69
-
}
70
-
foreach ($slug['fields'] as$slugField) {
71
-
if (!$meta->hasField($slugField)) {
72
-
thrownewInvalidMappingException("Unable to find slug [{$slugField}] as mapped property in entity - {$meta->name}");
73
-
}
74
-
if (!$this->isValidField($meta, $slugField)) {
75
-
thrownewInvalidMappingException("Cannot use field - [{$slugField}] for slug storage, type is not valid and must be 'string' or 'text' in class - {$meta->name}");
thrownewInvalidMappingException("Cannot use field - [{$field}] for slug storage, type is not valid and must be 'string' or 'text' in class - {$meta->name}");
if (empty($slug['fields']) || !is_array($slug['fields'])) {
104
+
thrownewInvalidMappingException("Slug must contain at least one field for slug generation in class - {$meta->name}");
105
+
}
106
+
foreach ($slug['fields'] as$slugField) {
107
+
if (!$meta->hasField($slugField)) {
108
+
thrownewInvalidMappingException("Unable to find slug [{$slugField}] as mapped property in entity - {$meta->name}");
109
+
}
110
+
if (!$this->isValidField($meta, $slugField)) {
111
+
thrownewInvalidMappingException("Cannot use field - [{$slugField}] for slug storage, type is not valid and must be 'string' or 'text' in class - {$meta->name}");
0 commit comments