Closed dutchiexl closed 8 years ago
The way I work around this is by writing
$participant = $fm->create('App\Models\Particiant');
$program = $fm->create('App\Models\Program',
['participant_id' => $participant->id]);
$certification = $fm->create('App\Models\Certification',
['participant_id' => $participant->id, 'program_id' => $program->id]);
Is there any way to share models between definitions in v3.0.1? I can't find any example.
I am building an application with 3 models:
Because a program is not needed to create a certification, both the Certification as the Program have a relation with participant. This is the same participant.
I created my definitions:
for both the program as the certification, a participant will be created. I would like to pass them the same participant. Is this possible?