Jump to content

Adding field for Attribute class


Recommended Posts

Hi,


 


I'm trying to add a field on the Attribute class. Actually I already managed to add one, everything is working fine. But I would like this field to be updatable depending the selected store.


 


And I can't do that. I of course have added my field in the attribute_shop table.


I also added 'shop' => true in the Attribute class definition for my new field, but it seems it's not enought. When I save it tells me an error occured while saving the Attribute object.


 


Is this doable and if yes what am I missing ?


 


Thanks !


Link to comment
Share on other sites

Well, finally it was a small thing missing. I did all I have to do but I had to add the same new column in the attribute table too. I indeed deleted it because I thought it only had to exist in the attribute_shop table.

  • Like 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...