문제

I added two fields to a table, which is used as an embedded form in an admin-generator-module. I created the widgets and changed the templates. I also put the fields in generator.yml, changed schema.yml and executed doctrine:build --all-classes and cc.

Although the fields do appear and the entered data is saved to the MySQL-DB, the data is not shown in the textfields, as the new fields are not part of the MySQL-Query (which goes for every single of the old fields).

I did a grep over the whole application - everything is done exactly the same way as it is for the old fields.

How / where is the MySQL-Query created or cached and how can I (force SF to) change it?

도움이 되었습니까?

해결책

Finally I figured out, what happened... The query used to be cached by APC. Calling

  apc_clear_cache();
  apc_clear_cache('user');
  apc_clear_cache('opcode');

in preExecute() solved the problem. gosh.....

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top