1st-rapid-response-force / catalyst

Advanced MILSIM management platform
https://1st-rrf.com
0 stars 0 forks source link

Fix CatalystMOSSeeder.php and CatalystAssignmentSeeder.php - for new structure #9

Closed mrgwilliam closed 9 years ago

mrgwilliam commented 9 years ago

The following two seeder files autobuild the assignments and mos structure for the unit.

Assignment requires the following $assignment = new Assignment; $assignment->group_id = $group12->id; (Groups are already defined) $assignment->name = 'Infantry Support Specialist'; (Name goes here yep) $assignment->save();

MOS requires the following $mos = new MOS; $mos->name = 'Infantry Support Specialist'; (Name must match assignment $mos->mos = '92B'; (MOS Code - MUST BE UNIQUE) $mos->rank_limitation_id = $SPC->id; (Ranks are defined at top as $VAR) $mos->save();

Seeder will autoattach all Assignments to MOS's

It would be done, but you said you wanted to modify the structure, so get this done