From: Andrey Kutejko Date: Sun, 10 Mar 2019 14:53:18 +0000 (+0100) Subject: update to conform to latest IPF X-Git-Tag: 0.6~1 X-Git-Url: https://git.andy128k.dev/?a=commitdiff_plain;h=ba94e6d6d9b079ab5a30819b878e99ea2b92ab50;p=ipf-legacy-orm.git update to conform to latest IPF --- 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 '.';