Beispiel #1
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getArticleItems()
 {
     return $this->hasMany(ArticleItems::className(), ['catid' => 'id']);
 }
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getItem()
 {
     return $this->hasOne(ArticleItems::className(), ['id' => 'itemid']);
 }