M
M
mbcsoft2014-06-06 15:07:18
ORM
mbcsoft, 2014-06-06 15:07:18

ORM - what is it and how is it different from ActiveRecord

Hello. A question has come up. I don't understand how ORM differs from ActiveRecord?
After reviewing the code, I realized that AR objects have save, delete methods, but the AR class will also have methods for finding itself. ($a = new Person(1); $a->load() )
Is AR an object that can load, save, delete itself?
ORM is a wrapper for table lookup returning AR objects? (PersonTable::select('*')->where('salary < 20000')->limit(5);)
ORM - is it better to use a static class?
UPD: framework: MicroMVC, but the framework itself is not important, I want to understand the basics so that I can answer the question of how orm differs from ar.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vit, 2014-06-06
@mbcsoft

AR is a special case of ORM. Incorrect question.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question