Log message #4155653

# At Username Text
# 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?
# Jul 4th 2018, 09:38 lubos I am lost, anyone give me hint to following problem: I have `Offers` which are associated to `SuppressedOffers` (same table via joinTable). Let's say we have ``` offer1 suppressed_offers offer3 offer2 offer3 ``` When I result set with `offer1`, I don't want to show `offer3` I think I can't build sql query like this and I have to do post-processing or two queries (searching suppressed ones first) I like mapReduce, to be added in
# Jul 4th 2018, 09:37 josbeir @lubos is the map/reduce docs in the cake book not helping ?
# Jul 4th 2018, 09:37 steinkel same as the cake2 certification, and same as before 100% donated to the cake software foundation
# Jul 4th 2018, 09:36 neon1024 Ah, cool :thumbsup:
# Jul 4th 2018, 09:36 steinkel it's in QA now so hopefully we can get it out of the oven soon, sorry for the pun
# Jul 4th 2018, 09:36 josbeir and how much will it cost :)