DataMapper
DataMapper is an Object Relational Mapper written in PHP for CodeIgniter. It is designed to map your Database tables into easy to work with objects, fully aware of the relationships between each other.
DataMapper OverZealous Edition
DataMapper was originally developed by Simon Stenhouse. The vast majority of the design and development was by him. The OverZealous Edition of DataMapper came from a desire to continue to enhance and develop DataMapper, and has been developed and maintained by Phil DeJarnett. DMZ is a near drop-in replacement if you are already using DataMapper 1.6.0 (and possibly older versions).
Some of the enhancements to the original DataMapper include:
- Same-table foreign-keys for $has_one relationships.
- The ability to view, edit, and query using extra columns on relationship join tables.
- The ability to include data from ($has_one) related objects.
- Significantly enhanced relationships, including multiple relationships between the same objects.
- The ability to extend DMZ through simple classes, and share those extensions.
Features
- Everything is an object!
- Easy to setup, easy to use.
- Custom Validation on object properties.
- Lazy Loading (related objects are only loaded upon access).
- Relations and their integrity are automatically managed for you.
- One to One, One to Many, and Many to Many relations fully supported.
- Select data in the style of Active Record (with or without Method Chaining).