From 86dcebf28bd7989f4c23580ab97961d432aad81a Mon Sep 17 00:00:00 2001 From: mark_story Date: Fri, 9 Aug 2013 10:08:01 -0400 Subject: [PATCH] Update bakeshell so `bake all` gets the correct connection name. Fixes #3972 --- lib/Cake/Console/Command/BakeShell.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/Cake/Console/Command/BakeShell.php b/lib/Cake/Console/Command/BakeShell.php index ce12401a9e9..844f257bcea 100644 --- a/lib/Cake/Console/Command/BakeShell.php +++ b/lib/Cake/Console/Command/BakeShell.php @@ -66,6 +66,9 @@ public function startup() { $this->{$task}->connection = $this->params['connection']; } } + if (isset($this->params['connection'])) { + $this->connection = $this->params['connection']; + } } /**