Object-relational mapping is a programming technique for converting data between incompatible type systems in relational databases and object-oriented programming languages.
So, we can handle objects/Models as a schema of database object. We can write code/query on model object collections which are loaded data by maintaining database relation.