ADOdb

Database Abstraction Layer for PHP

User Tools

Site Tools


v5:activerecord:activerecord_index

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
v5:activerecord:activerecord_index [2016/01/21 16:41] mnewnhamv5:activerecord:activerecord_index [2022/06/09 18:37] (current) – ↷ Links adapted because of a move operation 3.83.52.90
Line 7: Line 7:
 **ADOdb Active Record** is an [[wp>Object-relational_mapping|Object Relation Mapping]] (ORM) implementation using PHP. In an ORM system, the tables and rows of the database are abstracted into native PHP objects. This allows the programmer to focus more on manipulating the data and less on writing SQL queries. **ADOdb Active Record** is an [[wp>Object-relational_mapping|Object Relation Mapping]] (ORM) implementation using PHP. In an ORM system, the tables and rows of the database are abstracted into native PHP objects. This allows the programmer to focus more on manipulating the data and less on writing SQL queries.
  
-The ADODB Active Method library takes advantage of all the functionality of the underlying [[v5:userguide:userguide_index|ADOdb]] system, from table naming and casing control , mutiple database connections to features such as recordset caching. +The ADODB Active Method library takes advantage of all the functionality of the underlying [[v5:userguide:userguide_index|ADOdb]] system, from table naming and casing control, mutiple database connections to features such as recordset caching. 
  
-Thre are a couple of simple rules that help aid development, especially when developing simple applications in a rapid development environment. Following these rules will avoid additional configuration requirement:+Thre are a couple of simple rules that aid development, especially when developing simple applications in a rapid development environment. Following these rules will avoid additional configuration requirement:
  
   * The table and column names should be a consistent case in case sensitive environments.   * The table and column names should be a consistent case in case sensitive environments.
Line 18: Line 18:
  
  
-''ADODb Active Record'' is designed upon the principles of the ''ActiveRecord'' design pattern, which was first described by [[wp>Martin_Fowler|Martin Fowler]]. The ''ActiveRecord'' pattern has been implemented in many forms across the spectrum of programming languages. ''ADODb Active Record'' attempts to represent the database as closely to native PHP objects as possible.+''ADODb Active Record'' is designed upon the principles of the ''ActiveRecord'' design pattern, which was first described by [[wp>Martin_Fowler_(software_engineer)|Martin Fowler]]. The ''ActiveRecord'' pattern has been implemented in many forms across the spectrum of programming languages. ''ADODb Active Record'' attempts to represent the database as closely to native PHP objects as possible.
  
 ''ADODb Active Record'' maps a database table to a PHP class, and each instance of that class represents a table row. Relations between tables can also be defined, allowing the ADODb Active Record objects to be nested. ''ADODb Active Record'' maps a database table to a PHP class, and each instance of that class represents a table row. Relations between tables can also be defined, allowing the ADODb Active Record objects to be nested.
  
-ADOdb Active Record functions support the [[v5:reference:connection:cacheexecute|Record Caching]] functions of ADOdb+ADOdb Active Record functions support the [[v5:reference:connection:cacheexecute|Record Caching]] functions of ADOdb.
 ===== Using ADOdb Active Record ===== ===== Using ADOdb Active Record =====
 See the [[v5:activerecord:active_record_tutorial|tutorial]] See the [[v5:activerecord:active_record_tutorial|tutorial]]
Line 48: Line 48:
 ^[[v5:activerecord:tablebelongsto]]|Sets the parent of a many-to-one Active Record table relationship| ^[[v5:activerecord:tablebelongsto]]|Sets the parent of a many-to-one Active Record table relationship|
 ^[[v5:activerecord:tablekeybelongsto]]|Sets the parent of a many-to-one Active Record table key relationship| ^[[v5:activerecord:tablekeybelongsto]]|Sets the parent of a many-to-one Active Record table key relationship|
-^[[v5:activerecord:setdatabaseadaptor]]  |Sets the database connection for an Active Record class|+^[[v5:activerecord:setdatabaseadapter]]  |Sets the database connection for an Active Record class|
 ==== Associated Connection Methods ==== ==== Associated Connection Methods ====
 ^Method^Description^ ^Method^Description^
v5/activerecord/activerecord_index.1453390876.txt.gz · Last modified: 2017/04/21 11:21 (external edit)