fix Namespace change
This commit is contained in:
parent
b3990578d3
commit
a8d671e87c
|
@ -6,11 +6,11 @@
|
||||||
* Time: 15:50
|
* Time: 15:50
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace api\module\departement;
|
namespace api\module\department;
|
||||||
|
|
||||||
|
|
||||||
use database\core\Repo;
|
use database\core\Repo;
|
||||||
use database\repo\departement;
|
use database\repo\department;
|
||||||
use Ifsnop\Mysqldump\Mysqldump;
|
use Ifsnop\Mysqldump\Mysqldump;
|
||||||
|
|
||||||
class saveController
|
class saveController
|
||||||
|
@ -82,8 +82,8 @@ class saveController
|
||||||
readgzfile($this->backupPath.$backupName.".sql");
|
readgzfile($this->backupPath.$backupName.".sql");
|
||||||
$sql = ob_get_clean();
|
$sql = ob_get_clean();
|
||||||
|
|
||||||
/** @var departement $depRepo */
|
/** @var department $depRepo */
|
||||||
$depRepo = Repo::getRepo("departement");
|
$depRepo = Repo::getRepo("department");
|
||||||
|
|
||||||
$depRepo->restore($sql);
|
$depRepo->restore($sql);
|
||||||
|
|
Loading…
Reference in New Issue