【发布时间】:2019-08-30 14:30:12
【问题描述】:
是否可以获得项目中所有映射实体的报告?
我想要一个控制台命令或一个外部包,它可以向我显示所有映射实体的详细列表,以及有关字段、类型、约束等的每个细节。
类似这样的:
产品
|-------|-------------|--------|----------|-------------|
| Field | Type | Column | Nullable | Constraints |
|-------|-------------|--------|----------|-------------|
| name | string(255) | name | no | NotBlank |
|-------|-------------|--------|----------|-------------|
| price | float | price | yes | GreaterThan |
|-------|-------------|--------|----------|-------------|
快速了解包含许多实体的项目可能非常有用。
【问题讨论】:
-
你的意思可以解释更多
-
我添加了更多细节:
I would like a console command or an external bundle which could show me the detailed list of all the mapped entities, along with every detail about fields, types, constraints and so on. -
您可以创建自己的控制台命令。如果您使用上面的链接,您可以将类似的内容放入命令中:code.tutsplus.com/tutorials/…