Skip to content

Commit 92cb270

Browse files
mbabkerphansys
andcommitted
Update src/Revisionable/Mapping/Driver/Attribute.php
Co-authored-by: Javier Spagnoletti <[email protected]>
1 parent d537dac commit 92cb270

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Revisionable/Mapping/Driver/Attribute.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ public function readExtendedMetadata($meta, array &$config)
102102
// Validate configuration
103103
if (!$meta->isMappedSuperclass && $config) {
104104
// 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']) && (!$this->isEmbed($meta) && !isset($config['revisionable']))) {
105+
if (isset($config['versioned']) && !isset($config['revisionable']) && !$this->isEmbed($meta)) {
106106
throw new InvalidMappingException(sprintf('Class "%s" has "%s" annotated fields but is missing the "%s" class annotation.', $meta->getName(), Versioned::class, Revisionable::class));
107107
}
108108
}

0 commit comments

Comments
 (0)