public function replies() { return $this->getCachedRelation('id', \nitm\widgets\models\Replies::className(), [], true, 'replies'); }
/** * Return the reply author_id information * @param string $what The property to return */ public function getReplyTo() { return $this->hasOne(\nitm\widgets\models\Replies::className(), ['id' => 'reply_to'])->with('author'); }