Skip to content

Commit

Permalink
[Generator][Manager] Fixed ModelManager if file exists
Browse files Browse the repository at this point in the history
  • Loading branch information
willdurand committed Dec 22, 2011
1 parent 97125c6 commit a90cbbf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Propel/Generator/Manager/ModelManager.php
Expand Up @@ -156,7 +156,7 @@ protected function doBuild(AbstractOMBuilder $builder, $overwrite = true)
}

// skip unchanged files
if ($file->isFile() && $script == $file->contents()) {
if ($file->isFile() && $script == file_get_contents($file->getPathname)) {
$this->log("\t-> (unchanged) " . $builder->getClassFilePath());

return 0;
Expand Down

0 comments on commit a90cbbf

Please sign in to comment.