From af28b17475b638d8fb9df84b77ff6e6bc1433d11 Mon Sep 17 00:00:00 2001 From: jqh <841324345@qq.com> Date: Tue, 17 Nov 2020 01:08:10 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8DHasMany=E4=BB=A5=E5=8F=8Aarra?= =?UTF-8?q?y=E8=A1=A8=E5=8D=95=E6=B8=B2=E6=9F=93=E9=83=A8=E5=88=86?= =?UTF-8?q?=E5=AD=97=E6=AE=B5=E6=97=A0=E6=B3=95=E5=A1=AB=E5=85=85=E9=BB=98?= =?UTF-8?q?=E8=AE=A4=E5=80=BC=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Form/NestedForm.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Form/NestedForm.php b/src/Form/NestedForm.php index f6bcc7741..6470d4df7 100755 --- a/src/Form/NestedForm.php +++ b/src/Form/NestedForm.php @@ -371,7 +371,7 @@ protected function formatField(Field $field) protected function formatClass($name = null) { - return str_replace('.', '_', $name ?: $this->relationName); + return str_replace('.', '_', $name ?: $this->relationName).'_'.$this->key; } protected function formatName($name = null)