Doctrine orm 将注释转换为Yaml

Doctrine orm 将注释转换为Yaml,doctrine-orm,annotations,yaml,Doctrine Orm,Annotations,Yaml,如何将此“注释”代码转换为Yaml /** * @Entity * @InheritanceType("SINGLE_TABLE") * @DiscriminatorColumn(name="discr", type="string") * @DiscriminatorMap({"person" = "Person", "employee" = "Employee"}) */ 手册没有用Yaml给出,我在谷歌上搜索了几个小时后,就是找不到一个方法 type: entity inheri

如何将此“注释”代码转换为Yaml

/**
 * @Entity
 * @InheritanceType("SINGLE_TABLE")
 * @DiscriminatorColumn(name="discr", type="string")
 * @DiscriminatorMap({"person" = "Person", "employee" = "Employee"})
*/
手册没有用Yaml给出,我在谷歌上搜索了几个小时后,就是找不到一个方法

type: entity
inheritanceType: SINGLE_TABLE
discriminatorColumn:
    name: discr
    type: string
discriminatorMap:
    person: Person
    employee: Employee