/**
  * @return \yii\db\ActiveQuery
  */
 public function getSeo()
 {
     return $this->hasOne(Seo::className(), ['id' => 'seo_id']);
 }
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getSeo()
 {
     return $this->owner->hasOne(Seo::className(), ['entity_id' => 'id'])->where(['entity' => $this->owner->className()]);
 }