Log message #4201774

# At Username Text
# Sep 5th 2019, 11:54 spriz eg if you have Spanish strings in code, and have English in a `.po` file and want to swap so you have English strings in code and Spanish in `.po` files?
# Sep 5th 2019, 11:53 spriz Have anyone had luck with rector or some other automated solution to change the language of the source language in eg `__('foo')` to another language from a .po file?
# Sep 5th 2019, 11:53 val Hi, is there an easy way to force associations to use full table name like `LEFT JOIN my_database.users` instead `LEFT JOIN users` in 3.x?
# Sep 5th 2019, 11:51 Nitrogen indeed it does!
# Sep 5th 2019, 11:49 ndm No problem... not returning a response should work too, ie instead of `return $this->response->withDownload()` use `$this->response = $this->response->withDownload()`.
# Sep 5th 2019, 11:48 Nitrogen @ndm, $this->render() helped, thanks a bunch!
# Sep 5th 2019, 11:43 Nitrogen yea, tried it both ways to no avail, obviously. in case example might've been a typo.
# Sep 5th 2019, 11:43 ndm You could also skip the rendering and set the response body directly if your method is supposed to always return JSON
# Sep 5th 2019, 11:41 ndm @Nitrogen You're missing a `$this->render()` call (and the cookbook example too I guess), as returning a response will skip automatic view rendering, also when specifying the view class name as a "short name" string, it should be just `Json` without the `View` suffix.
# Sep 5th 2019, 11:34 admad @neon1024 at least having rains prevents Smith from notching up another century :P The guy is a freak.
# Sep 5th 2019, 11:31 admad for marshaling that is
# Sep 5th 2019, 11:31 admad though that would require having php's locale set to same locale and incoming value
# Sep 5th 2019, 11:30 spriz @admad Aha, I never figured there was locale parsing for the decimal type...... :cold_sweat:
# Sep 5th 2019, 11:30 admad for marshaling incoming data you can enable locale parsing for the DecimalType db type
# Sep 5th 2019, 11:29 admad @spriz there's Number::format()/currency() (also available through NumberHelper) for output formatting
# Sep 5th 2019, 11:13 Nitrogen apologies. my actual code https://pastebin.com/yHeDfett
# Sep 5th 2019, 10:48 neothermic Nitrogen, also debug the straight forward and dumb assumptions. Check the file path using is_readable() - this might be the original problem :slightly_smiling_face:
# Sep 5th 2019, 10:46 ndm @Nitrogen Downloads work fine, you should probably show your actual code...
# Sep 5th 2019, 10:46 javier.villanueva @ndm thanks
# Sep 5th 2019, 10:46 ndm @javier.villanueva https://book.cakephp.org/3.0/en/orm/saving-data.html#unlink-many-to-many-records
# Sep 5th 2019, 10:45 neothermic Note to self: make sure you include all the fields required by the behaviours you have that deal with decoding encoded data :)
# Sep 5th 2019, 10:44 javier.villanueva Hi, noob question. Is it possible remove the relationship of belongsToMany association? (I dont want to delete any entity)
# Sep 5th 2019, 10:40 Nitrogen has anyone successfully downloaded files from Cake? mine come out with size 0.
# Sep 5th 2019, 10:40 Nitrogen can't successfully replicate file download showcased here https://book.cakephp.org/3.0/en/views/json-and-xml-views.html#example-usage
# Sep 5th 2019, 10:24 spriz Might be @neon1024 - I had hoped for something built into the FormHelper :)
# Sep 5th 2019, 10:17 challgren Yeah its cause of the IRC users, they get left out a lot :(
# Sep 5th 2019, 10:16 racmiroslav thanks for information, I was always wondering why nobody uses threads :slightly_smiling_face:
# Sep 5th 2019, 10:15 challgren NP FYI its best to just reply in the channel in case other users are interested. And IRC users aren’t able to see threads
# Sep 5th 2019, 10:15 racmiroslav thank you!
# Sep 5th 2019, 10:13 challgren @racmiroslav this may help you https://github.com/UseMuffin/Sti it hasnt been updated in a while though
# Sep 5th 2019, 10:07 slackebot MapReduce or Formatter via setting an entity class on the table according to the `type` property and using `Marshaller::one` afterwards. Do you have any other suggestions? Or is it total bullshit and anti-pattern?
# Sep 5th 2019, 10:07 racmiroslav Hey folks. I have the `DocumentsTable` and a document has property `type` which can be one of predefined values, eg. common, agreement or invoice. In case of the `common` type I want to use the `Document` entity. But for other types, e.g. `invoice`, I want to use entity `Invoice extends Document`. The question is how to hydrate query results in such manner. I was thinking about disabling hydratation and hydrate entities conditionally in
# Sep 5th 2019, 09:59 neon1024 Input masks perhaps? Enforced with JS?
# Sep 5th 2019, 09:46 spriz Would like to show and accept only the "correct" format depending on which locale is currently set in Cake... :)
# Sep 5th 2019, 09:45 spriz when just giving `1500.50` value to browsers it depends if it adds thousands separator or not with chrome/firefox ,:)
# Sep 5th 2019, 09:44 spriz da_DK: 1.500,50 en_us: 1,500.50
# Sep 5th 2019, 09:44 spriz What would be the best way to handle numbers in request data coming in different locales per browser? beforeMarshal? Or is there some fancy way in Cake to handle this?
# Sep 5th 2019, 09:07 challgren Thanks @dereuromark
# Sep 5th 2019, 08:44 Nitrogen @dereuromark, cheers.
# Sep 5th 2019, 08:39 dereuromark many of them are optional as most things during 3.x are totally BC.
# Sep 5th 2019, 08:38 dereuromark execute each of the minor upgrades as per tool or migration guide ( https://github.com/dereuromark/upgrade/ ) and then you should be good.