B
B
BonBon Slick2017-11-17 23:48:20
ORM
BonBon Slick, 2017-11-17 23:48:20

Why is Laravel using ActiveRecord and not DataMapper?

Why is that? Why not Doctrine?
Symfony uses Doctrine by default and is more commonly used in enterprise projects, one of the most famous is PronHub.
It’s not entirely clear to me why, for example, this package is the main benefit of Laravel in its Eloquent .

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Ilya Myasin, 2017-11-18
@BonBonSlick

Well, it’s more or less decent (I wanted to write “not particularly porno”, but after re-reading the question, I changed my mind) data mapper has already been written, but the world has not yet seen the active record in php (there was Propel, but it somehow ceased to be fashionable, I don't know what happened to him). For projects where programming is 99% CRUD, active record seems to be much more efficient in terms of coding speed, and in principle there are a majority of such projects, and, apparently, Laravel is aiming at them.
It's not entirely clear to me what you actually want =) If you want Doctrine + Laravel - here it is, if you want Laravel without Doctrine - you can too. If you want to understand when is better - google "active record vs data mapper".
Who said it? ) There is generally quite a lot.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question