Пример #1
0
 public static function createSeller($personArr, $sellerArr)
 {
     $person = PersonController::createPerson($personArr);
     $sellerArr['fk_person'] = $person->id;
     Seller::create($sellerArr);
 }
Пример #2
0
 public static function createCustomer($personArr, $customerArr)
 {
     $person = PersonController::createPerson($personArr);
     $customerArr['fk_person'] = $person->id;
     Customer::create($customerArr);
 }