/**
  * @inheritdoc
  */
 public function afterSave($insert, $changedAttributes)
 {
     if ($insert) {
         $wall = new Wall();
         $wall->object_model = $this->className();
         $wall->object_id = $this->id;
         $wall->save();
         $this->wall_id = $wall->id;
         $this->update(false, ['wall_id']);
         $contentContainer = new ContentContainer();
         $contentContainer->guid = $this->guid;
         $contentContainer->class = $this->className();
         $contentContainer->pk = $this->getPrimaryKey();
         $contentContainer->wall_id = $this->wall_id;
         if ($this instanceof User) {
             $contentContainer->owner_user_id = $this->id;
         } elseif ($this->hasAttribute('created_by')) {
             $contentContainer->owner_user_id = $this->created_by;
         }
         $contentContainer->save();
         $this->contentcontainer_id = $contentContainer->id;
         $this->update(false, ['contentcontainer_id']);
     }
     parent::afterSave($insert, $changedAttributes);
 }