I have a question about an attribute in my entity (Recipe.php), the ingredients array attribute is a JSON type in my table. There is a JSON ecode of this array and does the type matter for JSON encoding? For example, if I choose the collection type for the ingredients. Could this work? for the encoding process with ORM and Doctrine. Thanks for your help !
#[ORM\Column]
private array $ingredients = [];