What is ORM in a web application?

I recently received a response from a server company asking if we use ORM in our application, which does all the work of sifting the application (for example, Rails) or if we write a lot of SQL, built-in functions, etc., that the database server performs processing for you.

Can anyone explain what is meant by this. Our web application is made up of PHP scripts with functions that make calls to the database to retrieve rows of data, and then PHP processes these rows as needed to return results to the user.

thanks

+5
source share
7 answers

PHP , .

, User, : $myUser->getName();

:

$myUser = new User();
$myUser->setName('John Doe');
$myUser->save();

, ( PHP Symfony/Doctrine), , .

+5

ORM - , - . , , SQL.

,   $ result = mysql_query ('select * from sandwiches, color =' green ' size =' 2 ');

,   $ = $sandwiches- > Get ( '' = > '', = > '' = > '2');

ORM SQL , ..

PHP ORM Doctrine Propel

, , !

+1

ORM - . java- . EX ORM Hibernate, Ibatis..

0

ORM .

, ORM, , / / , / .

0

ORM - Wikipedia - .

0

- (, ...) / OOPL. Hibernate NHibernate - ORM. .

0

All Articles