I've a custom entity {my_table} and added a new field in schema file as follows
/**
* Add {new_column} field to {my_table} table.
*/
function MY_MODULE_update_7100() {
$table = 'my_table';
$spec = array(
'type' => 'int',
'description' => "blah blah",
'size'=> 'tiny',
'default' => NULL,
);
db_add_field($table, 'new_column', $spec);
}
When I ran update.php the database table column got updated.
But the problem is when I run 'entity_load
' it's not fetching the added column to the object.
$get_entity = entity_load('{my_table}', array(184));
dpm($get_entity) // showing all columns, except the new_column
I've cleared the cache but no luck. Any suggestions would be much appreciated.