Nicolas PHILIPPE
Nicolas PHILIPPE
Hi @benblub sorry I have no clue why this is happening. I bet this is not related to Foundry, but not really sure. The "fun fact" is really weird :exploding_head:...
I'm closing this stale issue. feel free to reopen :)
hello, shouldn't it be like this? ```php Zenstruck\Foundry\ZenstruckFoundryBundle::class => ['dev' => true, 'dev_api' => true, 'test' => true] ```
please provide more information: - full `zenstruck_foundry.yaml` file - in which environment are you working?
please provide more information: - full `zenstruck_foundry.yaml` file - in which environment are you working?
seems something is missing: ```yaml when@dev_api: *dev ``` but the problem does not come from here I think when I was talking about `which environment` I was meaning dev|test|prod|dev_api :sweat_smile:...
> I want to change the environment type inside the bundle instead of changing it for the whole project not sure what you mean here? why do you want to...
yes, but it really not sounds like a Foundry problem: the bundle is agnostic of the app's environment. maybe it would help if you can create a public reproducerr
hello @er1z do you have in your factory the `phpstan-method` phpdoc suggested [in the doc](https://symfony.com/bundles/ZenstruckFoundryBundle/current/index.html#generate)? there is a specific annotation for the `repository()` method: ```php /** * @phpstan-method static RepositoryProxy...
the phpdoc I gave you above should fix it: it gives some hints to phpstan that `repository()` method returns a `RepositoryProxy` and the `RepositoryProxy` is a mixin of `EntityRepository` so...