#80825FlexForm Sections don't get saved before the parent record was stored to the DB
Description
Reproduce with current 8LTS and styleguide extension:
- Create a styleguide record “Form engine – flex”
- Go to tab “section container”
- Create one or more container.
- Save & Close
The error message “1: Attempt to insert record on page ‘[root-level]’ (0) where this table, tx_styleguide_flex, is not allowed” is shown and the flexform was not stored. The field flex_2 of the newly created record is empty.
Containers can be created without problems once the parent recod is saved. The issue only occurs on creation of a new recod when it is saved for the first time.
