I have a question regarding YAML configuration of Doctrine in Symfony2.
I have created an entity via "doctrine:generate:entity", and chose YAML as the mapping format. This didn't add any metadata on ../Entity/"MyEntity".php, which would allow me to update or create my schema.
As an example, if I run
./app/console doctrine:schema:create
it fails, saying:
[RuntimeException]
Bundle "MySuperBundle" does not contain any mapped entities.
My automapping is already set to "true".
If I choose to use annotation config this would not be a problem.
Did I miss something? Are there any extra steps that I should take?
Thank you in advance, regards,
Ivan
app/console doctrine:generate:entities MySuperBundle
? – kixBundle "MySuperBundle" does not contain any mapped entities
. – Ivancodescratch../My/SuperBundle/Resouces/config/doctrine/"NameOfMyEntity".yml
as well as the PHP Entity Class under `../My/SuperBundle/Entity/"NameOfMyEntity".php – Ivancodescratch