Browse Source

[SoftDeleteable] Small changes in constraint.

GennadyMiheev 13 years ago
parent
commit
044efc9566
1 changed files with 3 additions and 1 deletions
  1. 3 1
      lib/Gedmo/SoftDeleteable/Filter/SoftDeleteableFilter.php

+ 3 - 1
lib/Gedmo/SoftDeleteable/Filter/SoftDeleteableFilter.php

@@ -31,7 +31,9 @@ class SoftDeleteableFilter extends SQLFilter
             return '';
         }
 
-        return $targetTableAlias.'.'.$config['fieldName'].' IS NULL';
+        $column = $targetEntity->columnNames[$config['fieldName']];
+
+        return $targetTableAlias.'.'.$column.' IS NULL';
     }
 
     protected function getListener()