From 1968312773ce29ccd089af1acfe1463f27ab0b9c Mon Sep 17 00:00:00 2001 From: gwoo Date: Thu, 24 May 2007 16:17:30 +0000 Subject: [PATCH] updating interactive console for the grumpy guy git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5171 3807eeeb-6ff5-0310-8944-8be069107fe0 --- cake/console/libs/console.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/cake/console/libs/console.php b/cake/console/libs/console.php index 06dd94595..9ec3f07cd 100644 --- a/cake/console/libs/console.php +++ b/cake/console/libs/console.php @@ -81,10 +81,8 @@ class ConsoleShell extends Shell { if (preg_match("/^(\w+) $association (\w+)/", $command, $this->models) == TRUE) { $modelA = $this->models[1]; $modelB = $this->models[2]; - loadModel($modelA); - $M = new $modelA(); $dynamicAssociation = true; - $M->bindModel( + $this->{$modelA}->bindModel( array("$association" => array( "$modelB" => array( 'className' => $modelB))), false);