开发者

one schema for propel and torque project

I have a project consists of a java and a php application. The java application uses the torque-ORM and the PHP application uses the propel ORM.

I have two schema.xml files for the sa开发者_开发技巧me database. As far as I know propel is part of torque. Is it posible to use only one schema.xml for both projects?


Propel is not really a part of Torque, but it is indeed based on it. I haven't looked at the Torque schema reference in detail, but when I compare it to the Propel schema reference, they seem to be very alike, only differing in some attribute names. Maybe you can create one unified schema with all attributes, and then use two XSLT or other transformations to strip out the stuff that is related to the other ORM?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜