/**
  * @return \yii\db\ActiveQuery
  */
 public function getPost()
 {
     return $this->hasOne(Post::className(), ['id' => 'post_id']);
 }
Beispiel #2
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getPosts()
 {
     return $this->hasMany(Post::className(), ['term_id' => 'id']);
 }
Beispiel #3
0
 public function getPosts()
 {
     return $this->hasMany(Post::className(), ['id' => 'post_id'])->viaTable('post_category', ['category_id' => 'id']);
 }
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getPosts()
 {
     return $this->hasMany(Post::className(), ['owner' => 'formalemail']);
 }
Beispiel #5
0
 public function getPosts()
 {
     return $this->hasMany(Post::className(), ['id' => 'post_id'])->viaTable('tag4post', ['tag_id' => 'id']);
 }
Beispiel #6
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getPosts()
 {
     return $this->hasMany(Post::className(), ['agg_author_profile_id' => 'id']);
 }
Beispiel #7
0
 public function getAllPosts()
 {
     return $this->hasMany(Post::className(), ['author_id' => 'id'])->orderBy(['is_top' => SORT_DESC, 'post_time' => SORT_DESC]);
 }
Beispiel #8
0
 public function getPosts()
 {
     return $this->hasMany(Post::className(), ['cate_id' => 'id'])->asArray();
 }
 /**
  * Invalidate model tags.
  * @return bool
  */
 public function invalidateTags()
 {
     /** @var \DevGroup\TagDependencyHelper\TagDependencyTrait $this */
     \yii\caching\TagDependency::invalidate($this->getTagDependencyCacheComponent(), [static::commonTag(), Post::commonTag(), $this->objectTag(), NamingHelper::getObjectTag(Post::className(), $this->getPrimaryKey())]);
     return true;
 }
Beispiel #10
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getPosts()
 {
     return $this->hasMany(Post::className(), ['Participant_id' => 'id']);
 }
 public function getPosts()
 {
     return $this->hasMany(Post::className(), ['cid' => 'id', 'status' => [Post::STATUS_PUBLISHED, Post::STATUS_HIDDEN]])->orderBy(['is_top' => SORT_DESC, 'post_time' => SORT_DESC]);
 }