有没有一个PHP的数据库建模库,我可以作为第三方使用,支持从表生成模型


Is there a database modeling library for PHP that I can use as third party that supports generating models from tables?

我有一个旧的php项目,它是程序化编写的。我正在寻找一个可以从mysql数据库表生成模型的库,这样我就可以在代码中使用它们作为对象,避免大量重复。类似于现代PHP框架中的ActiveRecord建模类。

Doctrine1.2,Doctrine2(与CodeGenerator项目一起)。我认为Propel仍然支持这一点。