Replies: 1 comment
-
I think you're right, I can't see any reason not to make your suggested change. Could you open a PR for it? It can target the 5.0 branch and I'll do a release once it's merged, then I'll cherry-pick it for a new 6.x release as well. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I have run into an issue, that when I delete a post on a thread that has a lot of posts (3000+) I get memory limit errors or:
An exception occurred during an Action transaction.
I'm referring to this action: https://github.com/Team-Tea-Time/laravel-forum/blob/975a1cedaf34a3ffc275f5441c63d58bc72f7e89/src/Actions/DeletePost.php
Is there a reason why the sequence number is not set directly vs. calling the method on the model. So instead:
to this
Not having to call
getSequenceNumber
prevents the errors I'm having.laravel-forum/src/Models/Post.php
Line 58 in 975a1ce
When the
getSequenceNumber
method is used, it needs to loop over the posts again. But very well might be intentional.I'm working with v5, though v6 does not seem to differ too much.
Beta Was this translation helpful? Give feedback.
All reactions