示例#1
0
 public function requestFor()
 {
     return \nitm\helpers\Relations::getRelatedRecord('requestFor', $this, CategoryModel::className());
 }
示例#2
0
 public function hasNew()
 {
     return \nitm\helpers\Relations::getRelatedRecord('newCount', $this, static::className(), ['_new' => 0])->_new;
 }
示例#3
0
 public function replyTo()
 {
     return \nitm\helpers\Relations::getRelatedRecord('replyTo', $this, null);
 }