public function getPosts() { return $this->hasOne(Posts::className(), ['post_category' => 'category_id']); }
public function getPosts() { return $this->hasOne(Posts::className(), ['post_author' => 'user_id']); }