Skip to content
Permalink
Browse files

Update TableLocator.php

  • Loading branch information...
segy committed May 8, 2018
1 parent eb16107 commit 12ab03bd7a0e1b88fdd5ff7fb0aea16c47116046
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/ORM/Locator/TableLocator.php
@@ -195,7 +195,9 @@ public function get($alias, array $options = [])
if ($className) {
$options['className'] = $className;
} else {
$options['className'] = Inflector::camelize($alias);
if (empty($options['className'])) {
$options['className'] = Inflector::camelize($alias);
}
if (!isset($options['table']) && strpos($options['className'], '\\') === false) {
list(, $table) = pluginSplit($options['className']);
$options['table'] = Inflector::underscore($table);

0 comments on commit 12ab03b

Please sign in to comment.
You can’t perform that action at this time.