예제 #1
0
파일: Post.php 프로젝트: GAMITG/yii2-blog
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getType()
 {
     return $this->hasOne(Type::className(), ['id' => 'type_id']);
 }