Skip to content

Commit

Permalink
Merge pull request #386 from FriendsOfCake/jadb-patch-1
Browse files Browse the repository at this point in the history
Fallback to default factory for controller
  • Loading branch information
ADmad committed Mar 1, 2016
2 parents 06c2fbb + 44f2728 commit 59b3ec0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Core/ProxyTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ protected function _response()
protected function _table()
{
return $this->_controller()
->loadModel(null, $this->config('modelFactory') ?: 'Table');
->loadModel(null, $this->config('modelFactory') ?: $this->_controller()->modelType());
}

/**
Expand Down

0 comments on commit 59b3ec0

Please sign in to comment.