Recently, Views was updated to use data tables (the
data_table annotation on
@ContentEntityType) by default. See the change record at https://www.drupal.org/node/2433153.
This caught me out since I had both defined on my entity. I hadn't thought much about it, and I don't even know which example got me to do that. I think I may have based mine off
Anyway, what's the difference in terms of when they get used? It seems that, despite having defined
data_table, all my data was being saved in the
base_table anyway, and this caused Views not to work until I removed the
data_table property from my
@ContentEntityType definition altogether.
It seems my fields ought to be using
data_table. What did I do wrong in my entity? I'm porting a module and thus using