Skip to content
Browse files

Fix code review

  • Loading branch information...
1 parent 3fb8fe5 commit e27bbe9a61b8a3c4913601ff519c5368ad61dd5c Anh Tuan Kieu committed
Showing with 2 additions and 2 deletions.
  1. +2 −2 DataFixtures/AbstractDataHandler.php
View
4 DataFixtures/AbstractDataHandler.php
@@ -87,10 +87,10 @@ protected function loadMapBuilders($connectionName = null)
protected function isInDatabase($class, $connectionName)
{
$table = new $class();
- $tableName = $table->getClassname();
- return constant(constant($tableName.'::PEER').'::DATABASE_NAME') == $connectionName;
+ return constant($table->getPeerClassname().'::DATABASE_NAME') == $connectionName;
}
+
/**
* Try to find a valid class with its namespace based on the filename.
* Based on the PSR-0 standard, the namespace should be the directory structure.

0 comments on commit e27bbe9

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