コード例 #1
0
ファイル: BlogCatPos.php プロジェクト: hdushku/blog
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getPost()
 {
     return $this->hasOne(Post::className(), ['id' => 'post_id']);
 }