File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -39,14 +39,16 @@ public function insert(array $objects): void
3939 );
4040 }
4141
42- $ this ->transaction ->newQuery ()->insert ($ values );
42+ assert ( $ this ->transaction ->newQuery ()->insert ($ values) === true );
4343 }
4444
4545 public function insertOne (TransactionDtoInterface $ dto ): Transaction
4646 {
4747 $ attributes = $ this ->transformer ->extract ($ dto );
4848 $ instance = $ this ->transaction ->newInstance ($ attributes );
49- $ instance ->saveQuietly ();
49+ $ instance ->save ();
50+
51+ assert ($ instance ->getKey () !== null );
5052
5153 return $ instance ;
5254 }
Original file line number Diff line number Diff line change @@ -29,14 +29,14 @@ public function __construct(
2929 public function insert (array $ objects ): void
3030 {
3131 $ values = array_map (fn (TransferDtoInterface $ dto ): array => $ this ->transformer ->extract ($ dto ), $ objects );
32- $ this ->transfer ->newQuery ()->insert ($ values );
32+ assert ( $ this ->transfer ->newQuery ()->insert ($ values) === true );
3333 }
3434
3535 public function insertOne (TransferDtoInterface $ dto ): Transfer
3636 {
3737 $ attributes = $ this ->transformer ->extract ($ dto );
3838 $ instance = $ this ->transfer ->newInstance ($ attributes );
39- $ instance ->saveQuietly ();
39+ $ instance ->save ();
4040
4141 assert ($ instance ->getKey () !== null );
4242
You can’t perform that action at this time.
0 commit comments