diff --git a/Console/Command/ThumbnailShell.php b/Console/Command/ThumbnailShell.php index 676328e4..e5b9e064 100644 --- a/Console/Command/ThumbnailShell.php +++ b/Console/Command/ThumbnailShell.php @@ -65,7 +65,7 @@ public function generate() { $files = $this->{$modelName}->find('all', array( 'fields' => [$this->{$modelName}->primaryKey, $field, $mergedConfig['fields']['dir']], 'conditions' => array( - $field . " IS NOT NULL" + $modelName . '.' . $field . " IS NOT NULL" ) ));