Skip to content

Commit

Permalink
Fix TableRegistry::get() when merging pre-configuration options
Browse files Browse the repository at this point in the history
  • Loading branch information
codeguy committed Jun 16, 2015
1 parent c29c9e0 commit 839a2be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ORM/TableRegistry.php
Expand Up @@ -184,7 +184,7 @@ public static function get($alias, array $options = [])
}

if (isset(static::$_config[$alias])) {
$options += static::$_config[$alias];
$options = array_merge($options, static::$_config[$alias]);
}
if (empty($options['connection'])) {
$connectionName = $options['className']::defaultConnectionName();
Expand Down

0 comments on commit 839a2be

Please sign in to comment.