Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
Xavier Coureau committed Oct 1, 2014
2 parents 9913485 + 80f457e commit f886d25
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Subscriber/TablePrefixSubscriber.php
Expand Up @@ -63,7 +63,7 @@ public function loadClassMetadata(LoadClassMetadataEventArgs $args)
return;
}

if ($classMetadata->getReflectionClass()->implementsInterface('Ekino\\WordpressBundle\\Model\\WordpressEntityInterface')) {
if ($classMetadata->getReflectionClass() && $classMetadata->getReflectionClass()->implementsInterface('Ekino\\WordpressBundle\\Model\\WordpressEntityInterface')) {
$classMetadata->setPrimaryTable(array('name' => $this->prefix . $classMetadata->getTableName()));

foreach ($classMetadata->getAssociationMappings() as $fieldName => $mapping) {
Expand All @@ -74,4 +74,4 @@ public function loadClassMetadata(LoadClassMetadataEventArgs $args)
}
}
}
}
}
2 changes: 1 addition & 1 deletion Wordpress/Wordpress.php
Expand Up @@ -77,7 +77,7 @@ public function getContent()

define('WP_USE_THEMES', true);

global $wp, $wp_the_query, $wp_query, $allowedentitynames;
global $wp, $wp_the_query, $wpdb, $wp_query, $allowedentitynames;

$loader = $this->getWordpressDirectory() . 'wp-blog-header.php';

Expand Down

0 comments on commit f886d25

Please sign in to comment.