Skip to content

Commit d5fdc57

Browse files
authored
Merge pull request #1865 from enricog84/v2.4.x
Changed default for hardDelete option to 'true'
2 parents a268224 + e8ef0eb commit d5fdc57

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

lib/Gedmo/SoftDeleteable/Mapping/Driver/Annotation.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public function readExtendedMetadata($meta, array &$config)
4545
$config['timeAware'] = $annot->timeAware;
4646
}
4747

48-
$config['hardDelete'] = false;
48+
$config['hardDelete'] = true;
4949
if (isset($annot->hardDelete)) {
5050
if (!is_bool($annot->hardDelete)) {
5151
throw new InvalidMappingException("hardDelete must be boolean. ".gettype($annot->hardDelete)." provided.");

lib/Gedmo/SoftDeleteable/Mapping/Driver/Xml.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public function readExtendedMetadata($meta, array &$config)
4949
$config['timeAware'] = $this->_getBooleanAttribute($xml->{'soft-deleteable'}, 'time-aware');
5050
}
5151

52-
$config['hardDelete'] = false;
52+
$config['hardDelete'] = true;
5353
if ($this->_isAttributeSet($xml->{'soft-deleteable'}, 'hard-delete')) {
5454
$config['hardDelete'] = $this->_getBooleanAttribute($xml->{'soft-deleteable'}, 'hard-delete');
5555
}

lib/Gedmo/SoftDeleteable/Mapping/Driver/Yaml.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public function readExtendedMetadata($meta, array &$config)
5555
$config['timeAware'] = $classMapping['soft_deleteable']['time_aware'];
5656
}
5757

58-
$config['hardDelete'] = false;
58+
$config['hardDelete'] = true;
5959
if (isset($classMapping['soft_deleteable']['hard_delete'])) {
6060
if (!is_bool($classMapping['soft_deleteable']['hard_delete'])) {
6161
throw new InvalidMappingException("hardDelete must be boolean. ".gettype($classMapping['soft_deleteable']['hard_delete'])." provided.");

0 commit comments

Comments
 (0)