mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 09:06:17 +00:00
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:
parent
cfe54f4049
commit
1968312773
1 changed files with 1 additions and 3 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue