Here is a list of classic error you may experiment with Melodiia and how to fix it
You probably forget to install assets. bin/console assets:install
.
This error is disturbing but not related to Melodiia. It happens because you return an object that have a reference to itself in one of its children (or sub-children).
Let's consider the following couple of entities:
class Product
{
public ArrayCollection $variants;
}
class Variant
{
public Product $product;
}
When Melodiia tries to serialize your product, it will also serialize the variants associated to the product, then the product itself.
The serializer is well-designed and detect this issue, this is why you're getting this exception instead of an infinite loop!
To fix it, you need to use serialization groups, it's documented on Symfony documentation.