I want to use in my project Single Table Inheritance for symfony2/doctrine, but I can't find any working examples with yaml configuration for it. In official documentation there is only annotation configuration presented. I found xml examples, but I want to use yaml configuration. Can somebody help and share with some working code?
相关问题
- Symfony2 Set Controller in the kernelControllerEve
- Webpack Encore: cannot import local dependencies
- How to install local library with pip to a conda e
- Render custom attribute KNP Menu
- JavaScript File Transfer SSH
相关文章
- Check if variable is type of string or array in li
- Symfony : Doctrine data fixture : how to handle la
- Symfony is linked to the wrong PHP version
- Symfony2: check whether session exists or not
- Is there a way to modify the entity mapping config
- symfony2 form choice and mongodb
- Get random records with Doctrine
- Symfony 3.1 and OneUpUploaderBundle + Blueimp = Up
Here is an example of YAML markup:
Entities config files should be put into
src/Acme/StoreBundle/Resources/config/doctrine/<EntityName>.orm.yml
according to reference.Also built-in converter can be used: how to model inheritance in doctrine2 with yaml?
Okay built-in converter saves life.
In order to save time this an example of inheritance converted into yaml :