thephpleague / factory-muffin

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

Seed withoud save #436

Closed Ricky-rick closed 4 years ago

Ricky-rick commented 7 years ago

I have some models in my project that will be populated by a Api. These models don't have a save function. For that reason i use the 'instance' method to generate a model. But there is no method to seed with te instance function.

GrahamCampbell commented 7 years ago

How does https://github.com/thephpleague/factory-muffin/pull/437 look?

Ricky-rick commented 7 years ago

Great! This works for me.

ctrlaltdylan commented 6 years ago

Is there another method like new for just building a new model without persisting it?