CodeIgniter, models, and ORM, how to deal with this?

后端 未结 10 830
谎友^
谎友^ 2021-02-03 19:11

I\'m starting with CodeIgniter and after several hours diving in Google I\'m a bit confused.

Let\'s try to explain my question with a easy example: I have a table \'car

10条回答
  •  不知归路
    2021-02-03 20:04

    check out GAS ORM it sounds pretty good, handy and easy to use. some features of this ORM implementation for CodeIgniter:

    • Supported databases : cubrid, mssql, mysql, oci8, odbc, postgre, sqlite, sqlsrv. (including PDO, if you keep sync with CI repo)
    • Support multiple database connections.
    • Support multiple relationships.
    • Support composite keys (for key that define relationships).
    • Auto-create models from database tables and vice versa.
    • Auto-synchronize models-tables by creating migrations file.
    • Per-request caching.
    • Self-referential and adjacency column/data (hierarchical data).
    • Eager Loading to maximize your relationship queries (for performance manner).
    • Various finder methods (can chained with most of CI AR) and aggregates.
    • Validation and auto-mapping input collection with minimal setup.
    • Hooks points to control over your model.
    • Extensions to share your common function/library across your model.
    • Transactions and other CI AR goodness.
    • Included phpunit test suite to ensure most of API consistency.

    there is one form with spark support -> so it's easy to install

提交回复
热议问题