Permalink
Browse files

self

  • Loading branch information...
1 parent e310e39 commit e46ddac945f1c723710ecebbdbf177f186d9ecd4 @Mparaiso committed Mar 25, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/Mparaiso/Provider/DoctrineORMServiceProvider.php
View
4 src/Mparaiso/Provider/DoctrineORMServiceProvider.php
@@ -74,9 +74,9 @@ public function register(Application $app)
$app["orm.em"] = $app->share(function ($app) {
foreach ($app["orm.driver.configs"] as $key => $config) {
if ($key == "default") {
- $app["orm.chain_driver"]->setDefaultDriver(self::getDriver($config['type'], $config['paths'], $app["orm.config"]));
+ $app["orm.chain_driver"]->setDefaultDriver(DoctrineORMServiceProvider::getDriver($config['type'], $config['paths'], $app["orm.config"]));
}
- $app["orm.chain_driver"]->addDriver(self::getDriver($config['type'], $config['paths'], $app["orm.config"]), $config["namespace"]);
+ $app["orm.chain_driver"]->addDriver(DoctrineORMServiceProvider::getDriver($config['type'], $config['paths'], $app["orm.config"]), $config["namespace"]);
}
if (!isset($app["orm.connection"]) && $app["db"]) {
$app["orm.connection"] = $app["db"];

0 comments on commit e46ddac

Please sign in to comment.