mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +00:00
Adding fix from Ticket #2336
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4747 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
ed342c307d
commit
065b93c29a
1 changed files with 6 additions and 6 deletions
|
@ -2343,7 +2343,7 @@ class Bake {
|
||||||
$count = count($tables);
|
$count = count($tables);
|
||||||
for ($i = 0; $i < $count; $i++) {
|
for ($i = 0; $i < $count; $i++) {
|
||||||
if(low($type) == 'controllers') {
|
if(low($type) == 'controllers') {
|
||||||
$this->__controllerNames[] = $this->__controllerName($tables[$i]);
|
$this->__controllerNames[] = $this->__controllerName($this->__modelName($tables[$i]));
|
||||||
$this->stdout($i + 1 . ". " . $this->__controllerNames[$i]);
|
$this->stdout($i + 1 . ". " . $this->__controllerNames[$i]);
|
||||||
} else {
|
} else {
|
||||||
$this->__modelNames[] = $this->__modelName($tables[$i]);
|
$this->__modelNames[] = $this->__modelName($tables[$i]);
|
||||||
|
|
Loading…
Reference in a new issue