Skip to content

Commit

Permalink
Update based on feedback.
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Sep 26, 2017
1 parent 186d748 commit 84bfaed
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/Console/Command.php
Expand Up @@ -43,8 +43,10 @@ class Command
*/
public function __construct()
{
$locator = $this->getTableLocator() ? : 'Cake\ORM\TableRegistry';
$this->modelFactory('Table', [$locator, 'get']);
$locator = $this->getTableLocator();
$this->modelFactory('Table', function($alias){
return $this->getTableLocator()->get($alias);
});
}

/**
Expand Down

0 comments on commit 84bfaed

Please sign in to comment.