How can I update an Array of objects instead of object of objects? #2136
Unanswered
bobbylinux
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, I'm trying to update a tree structure inside a document.
First of all I retrieve data from database with this expression:
$format = Format::findOrFail($formatId);
then I pass my structure called "sectionsOrder" into a dedicated variable and try to remove a specific element with a function.
The result of this is an ARRAY of Arrays. and finally I save all. Result I've found in my database "sectionsOrder" field an object of objects...
what is going wrong?
Thank you
Beta Was this translation helpful? Give feedback.
All reactions