Stream Create() Function
Created 7 years ago by jcastillotx

I am working on a command where it checks the next date on an sponsorship to charge. When I create the sponsorship I get the error : [Illuminate\Database\QueryException] SQLSTATE[23000]: Integrity constraint violation: 1048 Column ‘entry_id’ cannot be null (SQL: insert into default_sponsorships_sponsorships_sponsorship_child (entry_id, related_id, sort_order) values (, 2733, 0)) so the SponsorshipRepositoryInterface $sponsorship $sponsorship->create($charges); I have a multiple relationship field that is pushed through the create but seems the new sponsorship id is not pushed with it.

piterden  —  7 years ago

Try to find that place in your code, and set entry_id manually.