T
T
Tarakkolya2014-08-20 17:14:32
symfony
Tarakkolya, 2014-08-20 17:14:32

What to do when app and app_dev behave differently?

The entity is written to the database incorrectly. The cache was cleared. On app_dev, the functionality works fine, on app, some lines seem to be ignored.
field in user:

fake:
            type: boolean
            default: false

I call the method in the controller:
$newUser->setFake(true);
as a result, everything works fine in app_dev and fake = 1 is written to the database,
and fake = 0 in app

Answer the question

In order to leave comments, you need to log in

2 answer(s)
P
Pavel Solovyov, 2014-08-20
@Tarakkolya

put app.php in debug mode and debug why there false (0) comes to the database

D
Dmitry Khaperets, 2014-08-20
@Khaperets

Look at the difference in the config_dev.yml and config_prod.yml configurations
It would be better if they also gave an example of what does not work out in order to know which way to dig

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question