0

I want to start with Symfony CMF, but I have a problem. I followed tutorial but instead of using default SQL, I need MySQL with doctrine ORM, so I tried configuring it following these guides. Everything looks good until I try to initiate database, by using following command using Doctrine ORM:

$ php app/console doctrine:database:create
$ php app/console doctrine:schema:create

but after firing

$ php app/console doctrine:schema:create

I get error: "No Metadata Classes to process."

As far as my conclusion goes, I need to create some classes which will act as routes, though nothing of that sort is mentioned in above guides. To avoid long post I setup git repo with source code. What may be the cause of this problem, and how could I fix it?

Tomasz Kowalczyk
  • 10,472
  • 6
  • 52
  • 68
antanas_sepikas
  • 5,644
  • 4
  • 36
  • 67

1 Answers1

0

From your repository, it seems you did not configure doctrine orm at all. you are referencing the setup guides for phpcr-odm and your sandbox is configured to use phpcr-odm. you can use jackalope-doctrine-dbal to use phpcr-odm with mysql.

if you really want to use the cmf with doctrine orm, only the RoutingBundle provides entities out of the box, and you will need to adjust those to suit your project.

Wouter J
  • 41,455
  • 15
  • 107
  • 112
dbu
  • 1,497
  • 9
  • 8
  • I'm sorry for, probobly silly questions, but im really new to symfony and symfony cmf, and concepts like PHPCR. Yet still I realy wan't to start a project with. So where can I find more information or example how to configure cmf with doctrine orm? – antanas_sepikas Apr 17 '14 at 12:01
  • there is not much info available on using the cmf with the orm. the only bit that comes with orm support out of the box is the RoutingBundle - have a look at that bundle to see how its done. – dbu May 07 '14 at 12:52
  • that said, i recommend you to look into phpcr-odm, its much better suited for content management and makes your live easier. – dbu May 07 '14 at 12:52