This may sound a bit weird, but I have a main app that has the
Permission table with the following columns:
role_id(foreign key from the
Rolestable, but that shouldn’t matter)
These columns also have been added to the entity.
Now in my plugin, I want to modify this table from the plugin’s migrations by adding the
Ofcourse, I also need the required entity for this.
My question is, how would I go about this?
Due to the way we want to set up our app (everything that is non-core - eg. the blog part - will become a plugin).
So that’s the catch in this, I can’t simply add it to the main app, because we won’t use it in all websites we base on this App.
My first thought is to create the Table and Entity in the plugin’s sources, but then I don’t know how to load these into the main Table and Entity.
I know that Controllers have
parent::initialize() but is there something like that for the Tables and Entities? (and since I also need to update the
$_protected, I wonder how that would work)