thephpleague / factory-muffin

Enables the rapid creation of objects for testing
https://factory-muffin.thephpleague.com/
MIT License
531 stars 72 forks source link

FactiryMufin generate method #430

Closed anasinnyk-atb closed 7 years ago

anasinnyk-atb commented 7 years ago

If we have a relation many-to-many in Doctrine, we shouldn't create a setter method. We can create add method.

Can we add some check for example when $key ended on "s" or "es"

#([^aeuiy])(?=es)es$|([^s])(?=s)s$#

we try use add prefix.

anasinnyk-atb commented 7 years ago

It's now working, because I have a cycle in my code. I resolve this problem by setCallback(). Thx