Open
Description
When the dependent field is not displayed, but is previously set, it should be nice to set it to null or a default value we want.
I don't really know if this can be implemented rirectly, or maybe, mentioned in the documentation to remind people implement it.
Eg:
public function setMeal(Meal $meal): static {
$this->meal = $meal;
if ('breakfast' !== $meal) {
$this->rating = null;
}
return $this;
}
Metadata
Metadata
Assignees
Labels
No labels