Results 1 to 2 of 2
  1. #1

    Why Use an ORM and an Abstraction Layer?

    Databases are relational. PHP 5 and symfony are object-oriented. In order to most effectively access the database in an object-oriented context, an interface translating the object logic to the relational logic is required.this interface is called an object-relational mapping (ORM), and it is made up of objects that give access to data and keep business rules within themselves.

    The main benefit of an ORM is reusability, allowing the methods of a data object to be called from various parts of the application, even from different applications. The ORM layer also encapsulates the data logic—for instance, the calculation of a forum user rating based on how many contributions were made and how popular these contributions are. When a page needs to display such a user rating, it simply calls a method of the data model, without worrying about the details of the calculation. If the calculation changes afterwards, you will just need to modify the rating method in the model, leaving the rest of the application unchanged.

  2. #2
    Join Date
    Apr 2020
    The information from you shared is a vast knowledge and everyone should read to be more open-minded. I am very grateful for that. atari breakout

Tags for this Thread


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Ad Here