Exemplo n.º 1
0
 /**
  * @param $stationParamsArray array
  */
 protected function stationAdd($stationParamArray)
 {
     $station = new Station();
     unset($stationParamArray['station_id']);
     unset($stationParamArray['created']);
     unset($stationParamArray['updated']);
     $station->attributes = $stationParamArray;
     $station->save();
     $station_id = $station->getPrimaryKey();
     $this->stations[] = $station;
     return $station_id;
 }