From ba94e6d6d9b079ab5a30819b878e99ea2b92ab50 Mon Sep 17 00:00:00 2001 From: Andrey Kutejko Date: Sun, 10 Mar 2019 15:53:18 +0100 Subject: [PATCH] update to conform to latest IPF --- src/commands/fixtures.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/commands/fixtures.php b/src/commands/fixtures.php index 3c6e279..746d22f 100644 --- a/src/commands/fixtures.php +++ b/src/commands/fixtures.php @@ -11,9 +11,9 @@ class IPF_Legacy_ORM_Command_Fixtures $project = IPF_Project::getInstance(); - $paths = array(IPF::get('project_path')); + $paths = array(IPF::get('project_root').DIRECTORY_SEPARATOR.'project'); foreach ($project->appList() as $app) - $paths[] = $app->path; + $paths[] = $app->getPath(); $fixtures = array(); foreach ($paths as $path) { @@ -55,7 +55,7 @@ class IPF_Legacy_ORM_Command_Fixtures $model = new $modelClass; foreach ($record as $k => $v) - $model->$k = $v; + $model->{$k} = $v; $model->save(); echo '.'; -- 2.49.0