Skip to content

Commit

Permalink
TableRegistry::get options should be identical to get the same instance
Browse files Browse the repository at this point in the history
  • Loading branch information
eryw committed Aug 30, 2014
1 parent 05e733a commit 8624ae9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ORM/TableRegistry.php
Expand Up @@ -156,7 +156,7 @@ public static function get($name, array $options = []) {
$exists = isset(static::$_instances[$alias]);

if ($exists && !empty($options)) {
if (static::$_options[$alias] != $options) {
if (static::$_options[$alias] !== $options) {
throw new RuntimeException(sprintf(
'You cannot configure "%s", it already exists in the registry.',
$alias
Expand Down

0 comments on commit 8624ae9

Please sign in to comment.