S
S
Stepan2015-09-01 16:55:17
Yii
Stepan, 2015-09-01 16:55:17

How to implement factories in Yii2 and what are they for?

I can't figure out how to implement them.
For example, I figured out the repositories. This simplifies working with the database
https://laravel.ru/posts/30 using this article as an example.
But what about factories?
Does anyone have a similar example?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Makarov, 2015-09-03
@SamDark

Same as without Yii: https://sourcemaking.com/design_patterns/abstract_...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question