/** * @return \yii\db\ActiveQuery */ public function getIdPosts() { return $this->hasOne(Posts::className(), ['id' => 'id_posts']); }
/** * @return \yii\db\ActiveQuery */ public function getPosts() { return $this->hasMany(Posts::className(), ['TagID' => 'TagID']); }
/** * @return \yii\db\ActiveQuery */ public function getPosts() { return $this->hasMany(Posts::className(), ['AttachmentTypeID' => 'AttachmentTypeID']); }
/** * @return \yii\db\ActiveQuery */ public function getPosts() { return $this->hasMany(Posts::className(), ['author_id' => 'id']); }
/** * @return \yii\db\ActiveQuery */ public function getPost() { return $this->hasOne(Posts::className(), ['id' => 'post_id']); }
/** * @return \yii\db\ActiveQuery */ public function getPost() { return $this->hasOne(Posts::className(), ['PostID' => 'PostID']); }