While I am aware of the similar question. My question is more generic, that what would happen to both calls whether I actually create a database column or not.
EDIT
I know addColumn()
will add a real table column, but when I'm diving into some core modules, some of them are calling both addColumn()
and addAttribute()
to the same field.
What is the difference between them?
EDIT 2
Because addAttribute()
looks very much EAV related to me, after some research I also find some similar names like addAttributeSet()
and addAttributeSetNames()
.
How are they differ to each other?