public function getAssists() { if (!$this->assists) { $this->assists = GameAction::getAll(array('game_nefub_id' => $this->game_nefub_id, 'assist_person_nefub_id' => $this->person_nefub_id), 'time'); } return $this->assists; }
/** * * @return array */ public function getGameActions($period = null) { $where = array('game_nefub_id' => $this->nefub_id); if ($period) { $where['period'] = $period; } return GameAction::getAll($where); }