Yii2 extension handling many many relation creating and saving