Log message #4155659

# At Username Text
# Jul 4th 2018, 11:16 josbeir and the cookie experiation time is also correct?
# Jul 4th 2018, 11:16 david yes, it is. If I browse or have any activity, I dont lose the session
# Jul 4th 2018, 11:16 josbeir is the cookie being set?
# Jul 4th 2018, 11:15 david any idea on what I am doing wrong?
# Jul 4th 2018, 11:14 david the expected time was 1440 minutes (24 hours)
# Jul 4th 2018, 11:14 david but if there is no activity, users loses sessions very soon
# Jul 4th 2018, 11:13 david File uploaded https://cakesf.slack.com/files/UAPU3DV3J/FBJR7K0PL/i_have_this_setup_for_my_sessions_in_app_php.php / https://slack-files.com/T053DPNCM-FBJR7K0PL-c08ee6016b
# Jul 4th 2018, 11:12 david morning
# Jul 4th 2018, 11:11 lubos So when using crud plugin, I would just adjust submitted data on beforeSave event
# Jul 4th 2018, 11:09 lubos Form helper ``` // Multiple select element for belongsToMany // Does not support _joinData ``` I need to add some joinData, what is the best approach? In the controller?
# Jul 4th 2018, 11:08 neon1024 @ldsign Simply extend the class. `class Example extends VendorBaseClass`
# Jul 4th 2018, 11:08 lubos @saeideng makes sense, thanks!
# Jul 4th 2018, 10:19 saeideng and I think first `formatResults` applied after than `mapreduce ` in queries , if you use both
# Jul 4th 2018, 10:18 saeideng `formatResults` is easier than of mapreduce in use in finder
# Jul 4th 2018, 10:15 ldsign Hi. I would like to "extend" a model class from a vendor plugin. How can I do that? Exactly I would like to add a function to the Aco-Entity from the Acl-Plugin (installed via composer)...
# Jul 4th 2018, 09:52 josbeir sup
# Jul 4th 2018, 09:51 andreas.susanto2 hi.. :slightly_smiling_face:
# Jul 4th 2018, 09:49 josbeir in many cases mapreduce is overkill anyway :slightly_smiling_face:
# Jul 4th 2018, 09:49 lubos Ahh... nice! Will give it a try
# Jul 4th 2018, 09:48 josbeir if its just to unset some stuff you can do it over there
# Jul 4th 2018, 09:48 josbeir https://book.cakephp.org/3.0/en/orm/query-builder.html#adding-calculated-fields
# Jul 4th 2018, 09:47 josbeir btw, if its a simple manipulation you could also use formatResults()
# Jul 4th 2018, 09:46 lubos yep, more examples in doc would help I think... once I am not so confused, might add some :slightly_smiling_face:
# Jul 4th 2018, 09:45 josbeir i must admit that the whole mapreduce stuff is very confusing
# Jul 4th 2018, 09:45 lubos @lorenzo any expert advice? :slightly_smiling_face:
# Jul 4th 2018, 09:45 lubos yep... mapReduce not so easy for me though :slightly_smiling_face: but thanks for suggestions :slightly_smiling_face:
# Jul 4th 2018, 09:44 josbeir its probabily possible with mapreduce tho...
# Jul 4th 2018, 09:43 lubos Got it :slightly_smiling_face:
# Jul 4th 2018, 09:43 josbeir $table->retrieceCoolResult() for instance
# Jul 4th 2018, 09:43 lubos OK, yep. right. But mapReduce is postprocessing and I like how I can stack multiple finders :slightly_smiling_face:
# Jul 4th 2018, 09:43 josbeir doesn't need to be a finder
# Jul 4th 2018, 09:43 josbeir i know, a finder
# Jul 4th 2018, 09:43 lubos that's what I am trying too :slightly_smiling_face:
# Jul 4th 2018, 09:43 josbeir it depends, a method in your table can be a possibility where you do some post processing
# Jul 4th 2018, 09:42 josbeir nah, keep your controllers light
# Jul 4th 2018, 09:42 lubos so you would use post-processing, collection methods in the controller?
# Jul 4th 2018, 09:42 josbeir probably not no
# Jul 4th 2018, 09:40 lubos @josbeir can we use collection methods in finder as shown here https://book.cakephp.org/3.0/en/orm/retrieving-data-and-resultsets.html#stacking-multiple-operations (findCommonWords example) ?
# Jul 4th 2018, 09:39 josbeir but it returns a collection right, why not use collection methods then ?
# Jul 4th 2018, 09:38 lubos @josbeir it is, but it always do something like giving you 2 result sets, i want just 1 result set filtered
# Jul 4th 2018, 09:38 slackebot4 finder in the model, but not sure how to set up mapReduce to just filter. OR can I use other collection methods in the finder in the model?