I am looking for a solution like Doctrine2 has. Because The Doctrine can create/generate SQL tables from the entities. (Ruby cans do too). But is it possible in Yii too?
For me it this is more easer then the opposite way.
(Because the Gii cannot handle well the relations between the tables)