Beispiel #1
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getMenuItemContent()
 {
     return $this->hasOne(MenuItemContent::className(), ['menu_item_id' => 'id']);
 }
Beispiel #2
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getMenuItemContents()
 {
     return $this->hasMany(MenuItemContent::className(), ['content_id' => 'id']);
 }