/**
  * @return \yii\db\ActiveQuery
  */
 public function getContent0()
 {
     return $this->hasOne(Content::className(), ['id' => 'content']);
 }
Beispiel #2
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getContents()
 {
     return $this->hasMany(\common\models\Content::className(), ['flat_page_id' => 'id']);
 }
Beispiel #3
0
 private function __construct()
 {
     self::$model = \Yii::$container->get(Content::className());
 }
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getContent()
 {
     return $this->hasOne(\common\models\Content::className(), ['id' => 'content_id']);
 }
Beispiel #5
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getContents()
 {
     return $this->hasMany(Content::className(), ['created_by' => 'id']);
 }