Answer the question
In order to leave comments, you need to log in
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
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)
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.
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.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question