public static function loadFixtures(TBGScope $scope) { $statuses = array(); $statuses['New'] = '#FFF'; $statuses['Investigating'] = '#C2F533'; $statuses['Confirmed'] = '#FF55AA'; $statuses['Not a bug'] = '#44FC1D'; $statuses['Being worked on'] = '#5C5'; $statuses['Near completion'] = '#7D3'; $statuses['Ready for testing / QA'] = '#55C'; $statuses['Testing / QA'] = '#77C'; $statuses['Closed'] = '#C2F588'; $statuses['Postponed'] = '#FA5'; $statuses['Done'] = '#7D3'; $statuses['Fixed'] = '#5C5'; foreach ($statuses as $name => $itemdata) { $status = new TBGStatus(); $status->setName($name); $status->setItemdata($itemdata); $status->setScope($scope); $status->save(); } }