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