Knowledge base
1000 FAQs, 500 tutorials and instructional videos. Here, there are only solutions!
Using the Propel abstraction layer
This guide is intended for developers who wish to use the ORM Propel on a hosting environment where command line access is restricted.
Preamble
- The ORM allows linking application objects to database tables. Data is manipulated via
PHPobjects rather than writing rawSQL. Propelis the abstraction layer that manages these interactions (relations, joins, pagination) to simplify code maintenance.
Particularities & limitations
Propelis not pre-installed viaPear.- You must install it manually in your project.
- It is imperative to download the "Conventional Package" version of
Propel.
- CLI commands (such as
propel-gen) are not executable on the server.- Consequently,
Propelis only used in "Runtime" mode in production. Class generation (build) must be performed locally. - The workflow involves generating the code in a development environment and then transferring the resulting files to the server.
- Consequently,
- Dependencies:
- The full set of libraries required for
Propelis available, except forPhing. - The absence of
Phingdoes not impact production, as this tool is only required during the local generation phase.
- The full set of libraries required for
Link to this FAQ:
Has this FAQ been helpful?