コード例 #1
0
ファイル: Posts.php プロジェクト: bokko79/servicemapp
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getPostTranslations()
 {
     return $this->hasMany(PostTranslation::className(), ['post_id' => 'id']);
 }
コード例 #2
0
ファイル: CsLanguages.php プロジェクト: bokko79/servicemapp
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getPostTranslations()
 {
     return $this->hasMany(PostTranslation::className(), ['lang_code' => 'code']);
 }