diff --git a/lib/Gedmo/SoftDeleteable/Mapping/Driver/Annotation.php b/lib/Gedmo/SoftDeleteable/Mapping/Driver/Annotation.php index 103fce6cc2..c54ffa91af 100644 --- a/lib/Gedmo/SoftDeleteable/Mapping/Driver/Annotation.php +++ b/lib/Gedmo/SoftDeleteable/Mapping/Driver/Annotation.php @@ -45,7 +45,7 @@ public function readExtendedMetadata($meta, array &$config) $config['timeAware'] = $annot->timeAware; } - $config['hardDelete'] = false; + $config['hardDelete'] = true; if (isset($annot->hardDelete)) { if (!is_bool($annot->hardDelete)) { throw new InvalidMappingException("hardDelete must be boolean. ".gettype($annot->hardDelete)." provided."); diff --git a/lib/Gedmo/SoftDeleteable/Mapping/Driver/Xml.php b/lib/Gedmo/SoftDeleteable/Mapping/Driver/Xml.php index 0d2b813387..d9ad75842a 100644 --- a/lib/Gedmo/SoftDeleteable/Mapping/Driver/Xml.php +++ b/lib/Gedmo/SoftDeleteable/Mapping/Driver/Xml.php @@ -49,7 +49,7 @@ public function readExtendedMetadata($meta, array &$config) $config['timeAware'] = $this->_getBooleanAttribute($xml->{'soft-deleteable'}, 'time-aware'); } - $config['hardDelete'] = false; + $config['hardDelete'] = true; if ($this->_isAttributeSet($xml->{'soft-deleteable'}, 'hard-delete')) { $config['hardDelete'] = $this->_getBooleanAttribute($xml->{'soft-deleteable'}, 'hard-delete'); } diff --git a/lib/Gedmo/SoftDeleteable/Mapping/Driver/Yaml.php b/lib/Gedmo/SoftDeleteable/Mapping/Driver/Yaml.php index 0c9c12e30e..01e93f009f 100644 --- a/lib/Gedmo/SoftDeleteable/Mapping/Driver/Yaml.php +++ b/lib/Gedmo/SoftDeleteable/Mapping/Driver/Yaml.php @@ -55,7 +55,7 @@ public function readExtendedMetadata($meta, array &$config) $config['timeAware'] = $classMapping['soft_deleteable']['time_aware']; } - $config['hardDelete'] = false; + $config['hardDelete'] = true; if (isset($classMapping['soft_deleteable']['hard_delete'])) { if (!is_bool($classMapping['soft_deleteable']['hard_delete'])) { throw new InvalidMappingException("hardDelete must be boolean. ".gettype($classMapping['soft_deleteable']['hard_delete'])." provided.");