some chance for generate the Database Schema from AR Classes??

Hello.

Well, see, I like very much the Yii ActiveRecord approach. I was use Doctrine2 (I use Symfony2 too :) ) and I love Doctrine2, but the Yii ActiveRecord too, and I want use how much possible the Yii Classes.

So, I want know if exist a chance for develop a function for create the ActiveRecord classes, and by a yiic command generate the SQL Schema.

What did you think about?? :)

This would require that you define the DB structure in AR. But it’s exactly what makes Yii’s AR so nice: they don’t require this extra data no more. They will update pretty much automatically (except for creating rules/relations/labels) and still work, even if you update your DB.

You could use the migration feature to manage your DB schema instead:

http://www.yiiframework.com/doc/guide/1.1/en/database.migration