Open rimas-kudelis opened 1 month ago
This happens because $metadata->embeddedClasses
contains a list that is too comprehensive (it lists not only child objects, but also deeper descendants).
A seemingly working fix is to add a simple check before the faulty line:
if (str_contains($fieldName, '.')) {
continue;
}
Hi @rimas-kudelis
would you mind adding a little bit more context, please? as least, how would look the minimal entity that makes the command break.
Thanks
When attempting to generate a factory for a class that has a protected property of
Money\Money
type, I get the following error:I'm using Foundry version 1.37.0.