在 symfony2 中从 Doctrine 实体 yml 或 Xml 创建或构建 UML 模式 [英] Create or build UML schema from Doctrine entity yml or Xml in symfony2
问题描述
我在我的 symfony 项目中生成了所有实体,我有什么想法、解决方案或软件可以从我的项目中生成的学说实体(xml 或 yml)创建或重新生成 UML 模式.
I generated all entities in my symfony projects,can I have any idea or solution or software to create or regenerate a UML schema from doctrine entity generated on my project(xml or yml).
推荐答案
使用免费工具,一种方法是使用命令
Using free tools, a way to do is to use the command
phpuml -x 1 -o C:\symfony\httpfoundation.xmi C:\symfony\vendor\symfony\src\Symfony\Component\HttpFoundation
(这是从 symfony 源代码生成模式的示例)
(this is a sample for generating the schema from symfony source code)
然后使用 BoUml Viewer 或 ArgoUML 查看生成的文件.
Then using BoUml Viewer or ArgoUML for viewing the generated file.
我尝试了其他方法,但都没有给出好的结果...
I tried other way to do it but none was giving good results...
我发现(并使用)的最佳方法是使用 Sparx Systems - Enterprise Architect,但您必须为此付费:(
The best way I found (and I use) is to do it with Sparx Systems - Enterprise Architect, but you have to pay for it :(
无论如何,如果你找到另一种可行的方法来做到这一点,我很感兴趣:)
Anyway, if you find another working way to do it, I'm quite interested :)
最好的问候,克里斯托夫
Best regards, Christophe
这篇关于在 symfony2 中从 Doctrine 实体 yml 或 Xml 创建或构建 UML 模式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!