Y
Y
yurygolikov2017-03-25 17:28:08
Yii
yurygolikov, 2017-03-25 17:28:08

Has anyone used data mapper (Doctrine 2) in Yii2? What about performance compared to Yii2's built-in active record?

Has anyone used data mapper (Doctrine 2) in Yii2? What are the pros and cons compared to active record Yii2?
In theory, the active record pattern should be faster than the data mapper. But the data mapper is clearly more convenient in terms of building the application architecture and using the DDD approach. What are you using in yii2?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrey K, 2018-05-21
@kuftachev

In general, a strange statement about the speed of the pattern, it all depends on the implementation. Both options can be implemented both on the basis of metadata and handles.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question