-
-
Notifications
You must be signed in to change notification settings - Fork 369
Closed
Labels
BugBug FixBug Fix
Description
In the unreleased 2.8 version, you are now allowed to have non-persisted entities on a LiveProp. We need to update https://ux.symfony.com/live-component/demos/form-collection-type to show this off, which means ALWAYS passing in the todoList
to the component.
Doing this locally exposes a few problems:
- When
TodoList
is dehydrated (via the serializer), it fails due to a circular reference (TodoList -> TodoItem -> TodoList) - When that's fixed, on the first Ajax call, the dehydrated data fails to set due to type problems. For example,
TodoList::setName()
accepts astring
argument, but the object deserialized tonull
initially. - If we empty the
TodoList
(by default we put one item into it), we hit a checksum problem due to how the emptyArrayCollection
is dehydrated.
Let's also check the case where the ArrayCollection
is initialized to a few saved entities.
Metadata
Metadata
Assignees
Labels
BugBug FixBug Fix