post by nasrul on Mar 13, 2023

when i use view as table and then i want to delete some record
thereis showing error
ErrorException: Trying to access array offset on value of type bool in file D:\xxx\www\xxx\vendor\grocerycrud\enterprise\src\GroceryCrud\Core\Model.php on line 321

whereas i have set primarykey with $crud->setPrimaryKey(‘id’, ‘v_tr_barang_masuk’);
and i have sett callback delete to delete real table not to view table

1 month later

post by larasmith on Apr 25, 2023

Hi @nasrul ,

I think views are read-only… but I think its possible to delete the record based on its primary key and using a call back. :blush:

1 / 2
Mar 2023