From 80e503a70f57e35fa44f7d12b9a150d42af09dcd Mon Sep 17 00:00:00 2001 From: dho Date: Mon, 5 Feb 2007 12:49:35 +0000 Subject: [PATCH] Adding missing loadModel() (ticket #2058) git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4453 3807eeeb-6ff5-0310-8944-8be069107fe0 --- cake/scripts/bake.php | 1 + 1 file changed, 1 insertion(+) diff --git a/cake/scripts/bake.php b/cake/scripts/bake.php index bc035428d..24599714f 100644 --- a/cake/scripts/bake.php +++ b/cake/scripts/bake.php @@ -434,6 +434,7 @@ class Bake { $wannaDoValidation = $this->getInput('Would you like to supply validation criteria for the fields in your model?', array('y','n'), 'y'); if(array_search($useTable, $this->__tables)) { + loadModel(); $tempModel = new Model(false, $useTable); $db =& ConnectionManager::getDataSource($useDbConfig); $modelFields = $db->describe($tempModel);