Skip to content

Commit

Permalink
Add pluginSplit to TableRegistry::set()
Browse files Browse the repository at this point in the history
  • Loading branch information
Berry Goudswaard committed Nov 19, 2014
1 parent 2b764fe commit 3c76c88
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/ORM/TableRegistry.php
Expand Up @@ -215,6 +215,7 @@ public static function exists($alias) {
* @return \Cake\ORM\Table
*/
public static function set($alias, Table $object) {
list(, $alias) = pluginSplit($alias);
return static::$_instances[$alias] = $object;
}

Expand Down

0 comments on commit 3c76c88

Please sign in to comment.