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
This commit is contained in:
gwoo 2007-05-24 16:17:30 +00:00
parent cfe54f4049
commit 1968312773

View file

@ -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);