Override core method

Hi friends.

I want to ask about override a method in yii2.

I need to override populateItem method of DbManager (rbac) class.

Help me please about this.

Thank you in advance…

Write an extended class of DbManager in which you override the method. And use the extended class for your rbac manager in the application config.

BTW, why do you have to override populateItem() method?