Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Update TableLocator.php
  • Loading branch information
segy committed May 8, 2018
1 parent eb16107 commit 12ab03b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/ORM/Locator/TableLocator.php
Expand Up @@ -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);
Expand Down

0 comments on commit 12ab03b

Please sign in to comment.