resultset Model Error |
This is my code :
PHP Code: $data['lista_documenti_dichiarante'] = $isee_documenti_documenti_dichiarante_model->where('id_isee' , $id) In view : PHP Code: <?php print_r($lista_documenti_dichiarante) ?> The result is : Code: Array ( [0] => App\Models\Entities\Isee_documenti_documenti_dichiarante_Entity Object ( [datamap:protected] => Array ( ) [dates:protected] => Array ( [0] => created_at [1] => updated_at [2] => deleted_at ) [casts:protected] => Array ( ) [attributes:protected] => Array ( [id] => 19 [id_isee] => 6 [nome_file] => 6*documenti_personali*1612808674*cammelli.jpeg [id_div] => o_1eu1e6m3abih1o93mb88fm8lg23 [created_at] => 2021-02-08 19:24:34 [updated_at] => 2021-02-08 19:24:34 [deleted_at] => ) [original:protected] => Array ( [id] => 19 [id_isee] => 6 [nome_file] => 6*documenti_personali*1612808674*cammelli.jpeg [id_div] => o_1eu1e6m3abih1o93mb88fm8lg23 [created_at] => 2021-02-08 19:24:34 [updated_at] => 2021-02-08 19:24:34 [deleted_at] => ) [_cast:CodeIgniter\Entity:private] => 1 ) ) Instead of : Code: [id] => 19 [id_isee] => 6 [nome_file] => 6*documenti_personali*1612808674*cammelli.jpeg [id_div] => o_1eu1e6m3abih1o93mb88fm8lg23 [created_at] => 2021-02-08 19:24:34 [updated_at] => 2021-02-08 19:24:34 [deleted_at] => Why ?
Error?
1. You have set Entity to return result 2. You are using findAll() method (returns an array of results) There is no error here.
(02-08-2021, 01:36 PM)iRedds Wrote: Error? this is my entity: PHP Code: <?php PHP Code: <?php |
Welcome Guest, Not a member yet? Register Sign In |