N
N
Nikita Gusakov2013-03-16 01:55:18
PHP
Nikita Gusakov, 2013-03-16 01:55:18

Silex + Doctrine ORM - can't figure it out?

github.com/hell0w0rd/Test-Silex-App - repository
I don't understand how to use the console and generate a class to work with the database.
The console issues

[InvalidArgumentException]  The helper "em" is not defined.

github.com/dflydev/dflydev-doctrine-orm-service-pr... - everything is so clearly written here that nothing is clear. Apparently, I have to somehow connect the application and specify it somewhere , but I don’t understand how and where
$em = $app['orm.em'];

Answer the question

In order to leave comments, you need to log in

1 answer(s)
W
warsoul, 2013-03-17
@warsoul

first answer from google (http://bit.ly/WvR3h6)

The CLI interface is not ./vendor/bin/doctrine, but ./vendor/bin/doctrine-module

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question