C
C
Chvanikoff2011-03-31 22:42:52
PHP
Chvanikoff, 2011-03-31 22:42:52

ORM for PHP

Greetings!

Please write with which ORMs have you ever worked and what are the pros/cons of them?

Answer the question

In order to leave comments, you need to log in

4 answer(s)
M
mybrain, 2011-04-01
@mybrain

I use Yii CActiveRecord, I'm happy as an elephant
, all pseudo-minuses are solved by reading the code)
(for some reason it's easier for me to understand the code than class reference)

V
Vladimir Chernyshev, 2011-04-01
@VolCh

Doctrine2 - the first one was also good, but the second fairy tale :) Models are ordinary objects, not heirs of something - the connection with the base is set either in configs or in annotations (comments to the class and properties like phpdoc) - no double, or even triple responsibility, the model does not know how and where it is stored in principle, there are no methods of the save object or the find class. Repositories are responsible for storing (or rather "persistence") objects. In general, the DataMapper and UnitOfWork patterns are implemented, and not the popular ActiveRecord in different variations.

P
Pavlo Ponomarenko, 2011-04-01
@TheShock

Kohana ORM. Of the shortcomings, it is impossible to gracefully and without a cycle pull out records with a has_many ratio. That is, either only requests in a cycle, or write your own crutch.

S
slik, 2011-04-01
@slik

phpactiverecord.org is a simple option, everything is there. Documentation, examples. Of the minuses - it develops more often jambs rule.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question