Skip to content
Browse files

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

[softdeleteable] avoid validation error on mapped superclass. fix #490
  • Loading branch information...
2 parents d5be578 + 4545716 commit 2d13e55c50bc7a38552a2132b6065d53ad45de53 @l3pp4rd committed Nov 3, 2012
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)) {

0 comments on commit 2d13e55

Please sign in to comment.
Something went wrong with that request. Please try again.