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