TYPO3 8.7.1でフォームフィニッシャSaveToDataBaseを使用する方法?私はYAMLでフィニッシャーを追加しようと、私はエラーがあります:SaveToDatabase in TYPO3 8
Argument 1 passed to TYPO3\CMS\Form\Domain\Finishers\SaveToDatabaseFinisher::process() must be of the type integer, string given, called in typo3\sysext\form\Classes\Domain\Finishers\SaveToDatabaseFinisher.php on line 207
YAMLドキュメント:から
renderingOptions:
submitButtonLabel: Submit
type: Form
identifier: form
label: Form
prototypeName: standard
finishers:
-
options:
table: table1
mode: update
whereClause:
uid: '1'
elements:
text-1:
mapOnDatabaseColumn: column1
identifier: SaveToDatabase
renderables:
-
renderingOptions:
previousButtonLabel: 'previous Page'
nextButtonLabel: 'next Page'
type: Page
identifier: page-1
label: Page
renderables:
-
defaultValue: ''
type: Text
identifier: text-1
label: Text
YAML形式はありません。あなたが提示したのはYAML文書であり、有効です。フォームとしての解釈はtypo3内部で行われます。 – Anthon
@Anthonこれは正しくありません。 TYPO3 v8には、完全に書き直されたフォームフレームワークが付属しています。どちらも、構成とフォームの定義はYAMLに基づいています。詳細については、ドキュメントをご覧ください:https://docs.typo3.org/typo3cms/drafts/code.tritum.de/TYPO3.CMS/Form_Documentation/Index.html –
@Sergey https://docs.typo3をお読みください。 org/typo3cms/drafts/code.tritum.de/TYPO3.CMS/Form_Documentation/ApiReference/Index.html#savetodatabase-finisher。 –