Create temporary table in CakePHP and load it as a Model

前端 未结 3 1215
不思量自难忘°
不思量自难忘° 2020-12-11 09:54

My plan is to create a temporary table using the $this->Model->query(); method then load it as a Model but I\'m getting an error staying \"Missing Database Table\". Turning

3条回答
  •  被撕碎了的回忆
    2020-12-11 10:41

    $tmpModel = 'TempModel'; // CamelCase

    also try, ClassRegisty::init($tmpModel);

    final issue may be cache. but dont think so

提交回复
热议问题