Browse Source

TableRegistry::get options should be identical to get the same instance

eryw 11 years ago
parent
commit
8624ae9c91
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/ORM/TableRegistry.php

+ 1 - 1
src/ORM/TableRegistry.php

@@ -156,7 +156,7 @@ class TableRegistry {
 		$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