Hi community,
this is a poll for the users of the fixture factories . We are introducing a new feature on our next release. If you want to give your opinion on how it should look like, feel free to vote here:
opened 02:09PM - 07 Jan 22 UTC
enhancement
Often little setters are added to a given factory. E.g.:
```php
ArticleFactory… ::make()
->with('Authors',
AuthorFactory()->make(10)->published()->active()->with('Address',
AddressFactory::make()->verified()
)
)
->getEntity()
```
These setters could be specified in the in string notation of the `with` method:
```php
ArticleFactory::make()->with('Authors::published::active[10].Address::verified')->getEntity();
```
Pros:
* this makes it much easier to write
Cons:
* we yes loose the autocompletion.
* refactoring by the IDE is not possible
If the method is not found, possibly due to some refactoring, an exception will be raised specifiying that the provided method does not exist.
Question 1:
Do you agree on the utility of the feature?
Question 2:
If yes, what is your prefered notation? `#` or `:` or `::` or `->` or something else?
Greetings,
Juan