Поправил namespace

This commit is contained in:
CORP\phedor 2018-04-03 14:35:20 +03:00
parent bef7165777
commit ee06f1febb
4 changed files with 26 additions and 40 deletions

View file

@ -8,7 +8,6 @@ class Factory
static $shortcut = "model";
public $db;
public $_registry;
public $_shortcut;
public function __construct (/*.Database.*/ $db, Settings $_registry = null)
{
@ -23,7 +22,7 @@ class Factory
*/
public function getModel ($name)
{
$modelName = "Mapper_" . $name;
$modelName = "App\\Mapper\\" . $name;
$model = new $modelName();
$model->db = $this->db;
$model->factory = $this;