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
Copy file name to clipboardExpand all lines: src/Revisionable/Mapping/Driver/Attribute.php
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -95,14 +95,14 @@ public function readExtendedMetadata($meta, array &$config)
95
95
continue;
96
96
}
97
97
98
-
$config['versioned'][] = $field;
98
+
$config['versionedFields'][] = $field;
99
99
}
100
100
}
101
101
102
102
// Validate configuration
103
103
if (!$meta->isMappedSuperclass && $config) {
104
104
// The revisionable flag must be set, except for embedded models, and the versioned config should be a non-empty array
105
-
if (isset($config['versioned']) && !isset($config['revisionable']) && !$this->isEmbed($meta)) {
105
+
if (isset($config['versionedFields']) && !isset($config['revisionable']) && !$this->isEmbed($meta)) {
106
106
thrownewInvalidMappingException(sprintf('Class "%s" has "%s" annotated fields but is missing the "%s" class annotation.', $meta->getName(), Versioned::class, Revisionable::class));
Copy file name to clipboardExpand all lines: src/Revisionable/Mapping/Driver/Xml.php
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -67,7 +67,7 @@ public function readExtendedMetadata($meta, array &$config)
67
67
// Validate configuration
68
68
if (!$meta->isMappedSuperclass && $config) {
69
69
// The revisionable flag must be set, except for embedded models, and the versioned config should be a non-empty array
70
-
if (isset($config['versioned']) && (!$this->isEmbed($meta) && !isset($config['revisionable']))) {
70
+
if (isset($config['versionedFields']) && (!$this->isEmbed($meta) && !isset($config['revisionable']))) {
71
71
thrownewInvalidMappingException(sprintf("Class '%s' has fields with the 'gedmo:versioned' element but the class does not have the 'gedmo:revisionable' element.", $meta->getName()));
72
72
}
73
73
}
@@ -172,7 +172,7 @@ private function inspectElementForVersioned(\SimpleXMLElement $element, array $c
Copy file name to clipboardExpand all lines: src/Revisionable/Mapping/Driver/Yaml.php
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -66,7 +66,7 @@ public function readExtendedMetadata($meta, array &$config)
66
66
// Validate configuration
67
67
if (!$meta->isMappedSuperclass && $config) {
68
68
// The revisionable flag must be set, except for embedded models, and the versioned config should be a non-empty array
69
-
if (isset($config['versioned']) && !isset($config['revisionable'])) {
69
+
if (isset($config['versionedFields']) && !isset($config['revisionable'])) {
70
70
thrownewInvalidMappingException(sprintf("Class '%s' has fields marked as versioned but the class does not have the 'revisionable' configuration.", $meta->getName()));
71
71
}
72
72
}
@@ -167,7 +167,7 @@ private function inspectConfigurationForVersioned(array $mapping, array $config,
0 commit comments