-
-
Notifications
You must be signed in to change notification settings - Fork 64
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Zenstruck\Foundry\Factory::$class must not be accessed before initialization #637
Comments
Hi, could you please share more context? at least the stack trace would be helpful |
Do you mean this? C:\Users\project> php bin/console doctrine:fixtures:load Careful, database "api_presupuesto_db/" will be purged. Do you want to continue? (yes/no) [no]:
This same procedure used to work a month ago, but now it doesn't... By the way if I modify Vendor > zenstruck > foundry > src> Factory.php and initialize the $class attribute to the exact name of the Entity I want to create, it works... Any help will be appreciated. |
I can't understand how this could be possible. could you share |
BudgetFixtures.php:
BudgetFactory.php:
Thank you, again. |
hey @dwcs-2324 this is fixed and released in |
I'm closing this, feel free to reopen it if you still have a problem around this |
Hi, I'm having this issue with name": "zenstruck/foundry" "version": "v1.38.0":
Typed property Zenstruck\Foundry\Factory::$class must not be accessed before initialization
Could anyone help me?
Thank you in advance
The text was updated successfully, but these errors were encountered: