Log message #4201754

# At Username Text
# 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.
# Sep 5th 2019, 08:37 Nitrogen wasn't mentioned specifically on the migration page, just wanted to make sure.
# Sep 5th 2019, 08:37 Nitrogen guys, I'm looking to update my project from 3.5.10, do I upgrade incrementally? I'm using composer.
# Sep 5th 2019, 08:34 dereuromark yeah, sounds like a valid issue.
# Sep 5th 2019, 08:30 conehead Maybe an error should be thrown if the types differ? Now just a weird behavior occurs
# Sep 5th 2019, 08:30 conehead Well in case anyone wants to know:
# Sep 5th 2019, 08:25 dereuromark @challgren Actually, you were right, there is a way to add this as enhancement on top: https://github.com/dereuromark/cakephp-ide-helper/issues/145
# Sep 5th 2019, 08:24 neon1024 I was so sure that `get()` takes dot notation, `$entity->get('_joinData.sortorder')` right?
# Sep 5th 2019, 08:20 neon1024 Not sure how it looks to everyone else, but our country is an embarrassment in my opinion!
# Sep 5th 2019, 08:19 neon1024 Boris wanted to do it, and I guess they’re going to keep him in there until he does, somehow
# Sep 5th 2019, 08:19 neon1024 MP’s denied the bill for a General Election too
# Sep 5th 2019, 08:18 neon1024 I just want :sunny: for :cricket_bat_and_ball: instead of :umbrella_with_rain_drops:
# Sep 5th 2019, 08:17 neon1024 @admad I’m not too sure actually. Now that Bojo has lost the majority the rest of the house has passed a bill to prevent a No Deal. So it will happen, but probably be delayed again
# Sep 5th 2019, 08:07 conehead Well yes, that might be true. Still this is some really strange behavior. Still it should imho be possible.
# Sep 5th 2019, 08:04 admad unless you are a masochist you shouldn't try to use char fields to store both int and char foreign keys
# Sep 5th 2019, 08:03 slackebot debug it but only for `int(11)` the entity `TagsTagged` is set to `isNew`, but not for `char(36)` https://github.com/cakephp/cakephp/blob/9c1591001cd92e9d4ad9ed354c769514b0a61ee3/src/ORM/Association/BelongsToMany.php#L847
# Sep 5th 2019, 08:03 conehead @dereuromark I am using it the way you use it in your sandbox (and usually it is working) I have to say I changed the foreign key from `int(11)` to `char(36)` so I could link it with both. When leaving it as `int(11)` it works fine with linked id foreign keys. When changing it to `char(36)` it works with entitys that have a uuid. But then it won't work with ids `int(11)` anymore as duplicate entries are created. Currently I am trying to
# Sep 5th 2019, 07:58 admad is it gonna still happen now that joker lost majority?
# Sep 5th 2019, 07:57 admad morning brexiter!
# Sep 5th 2019, 07:56 neon1024 Morning everyone :wave:
# Sep 5th 2019, 07:47 Fasti I think i have found where it is overriding from ... time to test some fixes. Thanks for reading anyway