How to build the Database from the AR clases?

Hi folks.

Well, my english is some bad, but i wil try to explain my issue.

Im working my project for work with PostgreSQL and MySQL. So, I don’t want write the Database Schema for each Database Engine, I want write my ActiveRecord classes, and from that generate the databases for MySQL and for PostgreSQL.

some idea? thanks.

It is working in the opposite direction…

you need to create custom parser to read phpdoc and try to create schema for you… but it will be very buggy, actually depends on you…