Yii 2 MongoDB Embedded and IdentityInterface

Hi,

I am using MongoDB and since it doesn’t support embedded documents I have to use https://github.com/yii2tech/embedded as suggested by the document. My User model needs to implement this extension, however it already implement IdentityInterface. How can I use both of them in a single model?

What is the problem? You can just create class that implements two interfaces:





class User extends Model implements ContainerInterface, IdentityInterface

{

  // etc..

}




Thanks, I was not sure if we could do this.