Permalink
Browse files

Merge pull request #556 from ollietb/5b9c4ff837b5e65929eb541860f82a2f…

…1dcd2f9b

[Uploadable] Fix for MappedSuperclass
  • Loading branch information...
2 parents 8266844 + 5b9c4ff commit 0cc2f18585020877c8f6b4f02bb90494ab9b2dba @l3pp4rd committed Dec 18, 2012
Showing with 5 additions and 0 deletions.
  1. +5 −0 lib/Gedmo/Uploadable/Mapping/Validator.php
@@ -81,6 +81,11 @@ public static function validateFileSizeField(ClassMetadataInfo $meta, $field)
public static function validateField($meta, $field, $uploadableField, $validFieldTypes)
{
+
+ if ($meta->isMappedSuperclass) {
+ return;
+ }
+
$fieldMapping = $meta->getFieldMapping($field);
if (!in_array($fieldMapping['type'], $validFieldTypes)) {

0 comments on commit 0cc2f18

Please sign in to comment.