Answer the question
In order to leave comments, you need to log in
ORM / ActiveRecord / DataMapper for PHP: what to use?
Asking the community - what ORM / ActiveRecord / DataMapper are you using?
Yii's Active Record is fine as long as it's not about saving HAS_MANY and MANY_MANY.
Even here there is such an extension for Yii , which is close to what you need, but not quite.
An example of what you want to do: Two tables/models: product(id, name), product_images
(
image_id, product_id, sort_order)
use column sort_order(1,2,3,4,5).
It is clear that the issue is also solved with activerecord, but I want a more _convenient_ _flexible_ solution so as not to reinvent the wheel every time when you need to manipulate "additional columns" with relationships like HAS_MANY \ MANY_MANY
Which ORM has the most enjoyable experience with HAS_MANY\MANY_MANY?
Ps due to not fully understanding the terminology, maybe what I'm looking for is not "ORM / ActiveRecord / DataMapper"?
Answer the question
In order to leave comments, you need to log in
First you need to decide if you want AR or DM.
These are completely different things.
From AR, I advise illuminate / database, but everything is bad with DM - I haven’t seen any good implementations in PHP.
There is, of course, Doctrine, but the code and quality are just terrible. However, you have to use it for lack of anything better.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question