1

I'm using Symfony2, and I don't know why, currently if I'm in production environment, when I create a new field in one of my tables I always return null value with get.

If I use:

console doctrine:schema:validate 

I get that all it's ok.

I always creat tables using:

console doctrine:schema:update --force

But if for example I do:

$test = $entity->getTest();

In production always I get NULL, but in Develpment environment, I get the correct value.

My database mapping it's so big, for this puropose I can't write here.

Somebody have any idea about this?

Thanks!

user2794692
  • 361
  • 2
  • 10
  • 24

1 Answers1

0

You have to clear Symfony/APC cache using those command :

 sudo php app/console doctrine:cache:clear-metadata  --env=prod
 sudo php app/console doctrine:cache:clear-query  --env=prod
 sudo php app/console doctrine:cache:clear-result --env=prod
Oussama Nairi
  • 146
  • 1
  • 10