This commit is contained in:
2021-03-04 15:05:46 +08:00
parent 5d1a3b3533
commit 5a237cdd77
4 changed files with 23 additions and 19 deletions
+7 -7
View File
@@ -28,16 +28,16 @@ use JetBrains\PhpStorm\Pure;
/**
* @param array $handler
* @return mixed
* @return bool
*/
#[Pure] public function execute(array $handler): mixed
public function execute(array $handler): bool
{
// /** @var ActiveRecord $activeRecord */
// [$activeRecord, $method] = $handler;
//
// $activeRecord->setRelate($this->name, $method);
/** @var ActiveRecord $activeRecord */
[$activeRecord, $method] = $handler;
return parent::execute($handler);
$activeRecord->setRelate($this->name, $method);
return true;
}
}