Skip to content

Instantly share code, notes, and snippets.

Avatar

Chris cored0wn

  • proWIN Winter GmbH
  • Saarland, Germany
View GitHub Profile
@AkdM
AkdM / gist:49ae1d4115246a057526
Created Oct 24, 2014
Convert annotation to YAML for Symfony 2
View gist:49ae1d4115246a057526
php app/console doctrine:mapping:convert --namespace="MySuper\DuperBundle\Entity\MyEntity" yaml src/MySuper/DuperBundle/Resources/config/doctrine
That command will convert the annotation file into yaml format into src/MySuper/DuperBundle/Resources/config/doctrine as MySuper.DuperBundle.Entity.MyEntity.orm.yml