Scandal
Well-known member
Hello all devs!
Well, I need to build a getter for XF:Thread entity which do this: for page number $page (of the thread), return the post_date of its (I mean page's) last post.
I'm trying to find an efficient way to achive this. Even with a simple query / finder. I think that we will have to use the options()->messagesPerPage, but I'm not sure.
There is also the $this->post_ids getter for XF:Thread entity, if that helps.
Any suggestions or ideas are welcome!
Well, I need to build a getter for XF:Thread entity which do this: for page number $page (of the thread), return the post_date of its (I mean page's) last post.
I'm trying to find an efficient way to achive this. Even with a simple query / finder. I think that we will have to use the options()->messagesPerPage, but I'm not sure.
There is also the $this->post_ids getter for XF:Thread entity, if that helps.
Any suggestions or ideas are welcome!