You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
rimas-kudelis
changed the title
make:factory fails on a class that has a property of Money\Money from moneyphp typemake:factory fails when there is more than one level of embedded classes
Jun 6, 2024
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.
The text was updated successfully, but these errors were encountered: