/** * @return \yii\db\ActiveQuery */ public function getContent0() { return $this->hasOne(Content::className(), ['id' => 'content']); }
/** * @return \yii\db\ActiveQuery */ public function getContents() { return $this->hasMany(\common\models\Content::className(), ['flat_page_id' => 'id']); }
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']); }
/** * @return \yii\db\ActiveQuery */ public function getContents() { return $this->hasMany(Content::className(), ['created_by' => 'id']); }