mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-18 18:46:17 +00:00
Adding missing loadModel() (ticket #2058)
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4453 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
24d65cafbc
commit
80e503a70f
1 changed files with 1 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue