cancel
Showing results for 
Search instead for 
Did you mean: 

Extension Attribute not working

Extension Attribute not working

Hi All,
I have created extension attributes and used them on plugin which are responsible to get product data from methods such as "get" and "getList" defined in the productRepository class. I have checked them countless number of times. Sometimes the data gets exposed in the exetnsion attributes key in the "SearchCriteria" and "ProductDetail" API and most of time it results in the error "Uncaught Error: Call to undefined method Magento\\Catalog\\Api\\Data\\ProductExtension::setStickers()"

I have tried every possible solutions from removing generated and var directories to removing module and deploying it again. Then it works but after a time it results in the same error.

Please help me in any way. I'll be obliged. Thanks