Databases: Lumine
Hugo Ferreira da Silva (contact me)
This package is an object-relational mapping tool combining the styles of two frameworks: Hibernate and PEAR::DB_DataObjects.
It can manage information in objects to be stored and retrieved in relational databases.
It uses XML files to define how tables are mapped to database tables to know how to store and retrieve the mapped objects.
It features:
- It uses DOMIT! XML Parser to process the XML mapping files, so it does not require any PHP XML parser extension.
- It can validate the objects before inserting or updating them in database
- It provides support for relationships one-to-many, many-to-many and many-to-one
- Create your classes and maps by reverse engineering
- Create your databases tables based on your map files
- Currently it supports PostgreSQL and MySQL (InnoDB tables)
Click here for detailed information about this class on phpclasses.org
Class
Tool to easy make a reverse engineering
Class
Retrives information from XML mapping files
Class
Base class for all your entity classes
Class
Class to configure a database mapping
Class
Class to manage log
Class
Create database tables from a mapping structure
Class
Class to validate user entries in your classes, before a insert or update
Class
Classes to show messages provided in validation maps
Class
Base class (like a interface) for ResultSet for dialects
Example
Entity for "cars" table
Example
How to delete objects
Example
XML map for "cars" table
Example
How to retrive objects from database
Example
A reverse engineering example script