Log message #4174063

# At Username Text
# Jan 17th 2019, 22:08 ricksaccous @rightscoreanalysis not sure what exactly you want but sounds like collections might be able to help
# Jan 17th 2019, 22:08 ricksaccous aka via join Table
# Jan 17th 2019, 22:07 ricksaccous what's the best way to filter belongsToMany contained association via joinData?
# Jan 17th 2019, 21:50 rightscoreanalysis is it possible to combine objects from two different finds
# Jan 17th 2019, 21:50 rightscoreanalysis you can use threaded to find the top most parent
# Jan 17th 2019, 21:47 ricksaccous sweet
# Jan 17th 2019, 21:46 jhall ah yep that worked nice
# Jan 17th 2019, 21:44 ricksaccous return $reponse->withLocation('whatever');
# Jan 17th 2019, 21:44 jhall yeah I can try that
# Jan 17th 2019, 21:44 ricksaccous imagine*
# Jan 17th 2019, 21:44 ricksaccous I'd imaging you have to return the response
# Jan 17th 2019, 21:42 jhall It ignores this completely
# Jan 17th 2019, 21:42 jhall I tried this @ricksaccous with no luck I am not sure the syntax.
# Jan 17th 2019, 21:37 rightscoreanalysis is it possible to find the top level/oldest parent in a thrad
# Jan 17th 2019, 21:24 jhall but good point on the auto redirect after login
# Jan 17th 2019, 21:24 ricksaccous no problem
# Jan 17th 2019, 21:24 jhall thanks
# Jan 17th 2019, 21:24 jhall ok I may check it out
# Jan 17th 2019, 21:24 ricksaccous yeah
# Jan 17th 2019, 21:24 ricksaccous haha
# Jan 17th 2019, 21:24 jhall oh oh you said you never used it
# Jan 17th 2019, 21:24 ricksaccous I don't know I haven't used it, it might be the way to go
# Jan 17th 2019, 21:23 jhall oh why shouldn't I use beforeRedirect?
# Jan 17th 2019, 21:23 ricksaccous depending on the situation*
# Jan 17th 2019, 21:23 ricksaccous be wary that depending on referer might not be the best way because what if they get to that page because they logged in again and it autoredirected them back to where they were
# Jan 17th 2019, 21:22 ricksaccous you can use session, put it in a get request (some string representing where you want to go), never actually used beforeRedirect
# Jan 17th 2019, 21:19 jhall what's the best way to handle a case where I can get to an edit page from two separate controllers and depending where I came from (referer) that's where I want to return. Do I use before redirect?
# Jan 17th 2019, 21:19 rightscoreanalysis yeah that is what I thought but when I do find path and find children I get singletons
# Jan 17th 2019, 21:16 ricksaccous but i'd imagine a parent should be able to have many children
# Jan 17th 2019, 21:16 ricksaccous i haven't used the plugin that much
# Jan 17th 2019, 21:16 ricksaccous isn't that the whole point?
# Jan 17th 2019, 21:16 rightscoreanalysis any know know if for the 'tree' threaded models can I have nodes with the same parent_id?
# Jan 17th 2019, 21:10 ricksaccous oh well
# Jan 17th 2019, 21:10 ricksaccous that isn't available in collections either :(
# Jan 17th 2019, 21:09 rightscoreanalysis thanks
# Jan 17th 2019, 20:47 ricksaccous @rightscoreanalysis there doesn't appear to be any such option, might have to just go to using the native php way of doing it
# Jan 17th 2019, 20:44 rightscoreanalysis can I specify a second index to sort on should parent_id by the same for two indexes?
# Jan 17th 2019, 20:43 rightscoreanalysis Hash::sort($thread, '{n}.parent_id', 'desc');
# Jan 17th 2019, 20:43 rightscoreanalysis I'm using this to sort an array
# Jan 17th 2019, 20:41 ricksaccous no problem ;)
# Jan 17th 2019, 20:41 drouard.noelie I have a friends how takes care of it, I just need to be sure, thanks :P