[UPHPU] ORM

Alvaro Carrasco alvaro at epliant.com
Thu Nov 16 17:37:23 MST 2006


Daniel C. wrote:
> I actually just found that with Google.  The XML configuration isn't
> too terribly complex is it?
>
> Dan
>

No, it pretty much mirrors the database:

<?xml version="1.0" encoding="utf-8"?>
<database name="StingRay">
  <table name="campus_metadata" phpName="CampusMetadata" idMethod="native">
    <column name="id" phpName="id" type="INTEGER" primaryKey="true" />
    <column name="campus_id" phpName="CampusID" type="INTEGER" />
    <column name="goal" phpName="Goal" type="SMALLINT" />
  </table>
  <table name="campus_zips" phpName="campus_zips" idMethod="native">
    <column name="id" phpName="id" type="INTEGER" required="true" 
autoIncrement="true" primaryKey="true"/>
....

And it comes with tools to generate the xml from an already made database.

Alvaro





More information about the UPHPU mailing list