1000 FAQs, 500 tutorials and explanatory videos. Here, there are only solutions!
Use the Propel abstraction layer
This guide is for individuals looking to work with the Propel abstraction layer (which refers to a key component of the Propel library, an Object-Relational Mapping (ORM) for PHP).
Understanding ORM
ORM is a software development technique that allows mapping objects in your application to tables in a relational database. Instead of writing SQL queries directly, you can use ORM features to perform object-oriented data reading, writing, and manipulation operations.
The Propel abstraction layer provides an interface between your PHP code and the database. It facilitates creating, manipulating, and retrieving objects in your application without directly worrying about the details of the underlying database. It allows working with familiar PHP objects rather than raw SQL queries, making application development and maintenance easier. It also offers additional features such as managing object relationships, table joins, and pagination operations.
Special Features & Limitations
- Propel is not installed by default as a Pear package; this means you'll need to manually install it on your server
- The "Conventional Package" version of Propel can be installed; download and install this specific version properly
- Since Propel command lines (e.g., propel-gen) are not accessible, you won't be able to use them directly
- This means Propel can only be used in production once you have generated the necessary classes and files locally or on another development environment
- All code manipulation and generation should be done elsewhere before transferring the resulting files to your production environment
Dependencies
- All necessary dependencies to use Propel are available except for Phing
- Phing is not required for production, so this should not be an issue
- Make sure to have all other required dependencies for Propel correctly installed