/** * @return \yii\db\ActiveQuery */ public function getPost() { return $this->hasOne(Post::className(), ['id' => 'post_id']); }
/** * @return \yii\db\ActiveQuery */ public function getPosts() { return $this->hasMany(Post::className(), ['term_id' => 'id']); }
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']); }
public function getPosts() { return $this->hasMany(Post::className(), ['id' => 'post_id'])->viaTable('tag4post', ['tag_id' => 'id']); }
/** * @return \yii\db\ActiveQuery */ public function getPosts() { return $this->hasMany(Post::className(), ['agg_author_profile_id' => 'id']); }
public function getAllPosts() { return $this->hasMany(Post::className(), ['author_id' => 'id'])->orderBy(['is_top' => SORT_DESC, 'post_time' => SORT_DESC]); }
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; }
/** * @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]); }