cancel
Showing results for 
Search instead for 
Did you mean: 

Model not getting reset after loading a single record

Model not getting reset after loading a single record

I have fetch a record by using Model->load('record_id') function. I have got the record successfully. But after this when I am loading another record which is not present in database, then this is returning me the previous record. Also if I am loading another record which is present in the database, then it is returning me correct record.

 

Can anyone help me out with this query?

1 REPLY 1

Re: Model not getting reset after loading a single record

@keyurtecstub,

Can you show your code which you have tried?

Thanks.

 

If Issue Solved, Click Kudos/Accept As solutions. Get Magento insight from
Magento 2 Blogs/Tutorial