/**
  * @param Rage4Api $api
  * @param bool $cache
  * @return CreatedRecord[]
  */
 function get_records(Rage4Api $api, $cache = false)
 {
     if ($cache && $this->record_cache !== null) {
         return $this->record_cache;
     }
     $records = array();
     $ret = $api->getRecords($this->id);
     foreach ($ret as $r) {
         $records[] = CreatedRecord::fromRage4($r);
     }
     if ($cache) {
         $this->record_cache = $records;
     }
     return $records;
 }