Nicolas PHILIPPE

Results 319 comments of Nicolas PHILIPPE

maybe `str_replace()` on `{faker}->text({length})`? In this class you can know if the field is nullable from doctrine's metadata be careful, you'd need to modify `ObjectDefaultPropertiesGuesser` as well

I would indeed use a hook for this. The requested behavior is currently not possible, and I think it could be complex to implement, since we use Symfony's property accessor...

I'm closing this since it's a stale issue, and I don't think we will ever support this (beside of using a post instantiate hook)

cool :) Actually all the code is almost ready :smile: (just need to fix phpstan...)

won't it be a PITA to maintain tests for both versions?

closed in favor of https://github.com/zenstruck/foundry/pull/569

my 2 cents here: while I think it could be a good idea, I don't see how we could have the same nice DX we have today in Foundry with...

hey @NorthBlue333 I'm wondering if this problem could not be fixed using: ```php class CommentFactory { public function withUserAndPosts(): static { return $this->with(['user' => UserFactory::new(['posts' => PostFactory::new()->many(5))]); // OR return...

Hello @BernardA if the migrations work well in test, couldn't you add the two queries you need inside a migration?