Doctrine always return null values in production

2019-08-09 02:48发布

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!

0条回答
登录 后发表回答