Exemplo n.º 1
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getPostTranslations()
 {
     return $this->hasMany(PostTranslation::className(), ['post_id' => 'id']);
 }
Exemplo n.º 2
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getPostTranslations()
 {
     return $this->hasMany(PostTranslation::className(), ['lang_code' => 'code']);
 }