To retrieve data from a specific custom_field in a channel entry I used to do the following:
$data = ee()->db->select('field_id_2')
->from('exp_channel_data')
->where(array(
'entry_id' => $entry_id
))
->get();
$field_value = $data->row('field_id_2');
How would I do that now ? Is there somewhere I can I find examples for getting and setting data in channel entries using the ChannelEntry model ?
(examples in the docs are for members and templates and I don't get how it relates to entries)