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