Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #498 from dbu/fix-softdeleteable-superclass

[softdeleteable] avoid validation error on mapped superclass. fix #490
  • Loading branch information...
commit 2d13e55c50bc7a38552a2132b6065d53ad45de53 2 parents d5be578 + 4545716
@l3pp4rd authored
Showing with 4 additions and 0 deletions.
  1. +4 −0 lib/Gedmo/SoftDeleteable/Mapping/Validator.php
View
4 lib/Gedmo/SoftDeleteable/Mapping/Validator.php
@@ -34,6 +34,10 @@ class Validator
public static function validateField(ClassMetadataInfo $meta, $field)
{
+ if ($meta->isMappedSuperclass) {
+ return;
+ }
+
$fieldMapping = $meta->getFieldMapping($field);
if (!in_array($fieldMapping['type'], self::$validTypes)) {
Please sign in to comment.
Something went wrong with that request. Please try again.