Ejemplo n.º 1
0
 public function replies()
 {
     return $this->getCachedRelation('id', \nitm\widgets\models\Replies::className(), [], true, 'replies');
 }
Ejemplo n.º 2
0
 /**
  * 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');
 }