Log message #4192896

# At Username Text
# Jul 12th 2019, 09:33 jeremy.payne What's the best way to duplicate a model? I tried `$copy = $articlesTable->newEntity($article->toArray())` but for some reason not all fields are being copied other. Looking at the `toArray()` result I see the fields I'm expecting, but when I `dd($copy)`, it's missing for example the `json_version` field :thinking_face: Would a better way be to just `$copy = clone($article); unset($copy->id);`?
# Jul 12th 2019, 09:24 graziel i think i had same problem with update from 3.7 to 3.8
# Jul 12th 2019, 09:23 neon1024 Heroic, thanks @graziel
# Jul 12th 2019, 09:23 graziel you can also try removing sqlite file
# Jul 12th 2019, 09:22 neon1024 Which makes this very confusing
# Jul 12th 2019, 09:22 neon1024 `2019-07-12 09:16:33 Error: [Cake\Routing\Exception\MissingRouteException] A route matching "/debug-kit/toolbar/ee813904-758f-45e5-a70c-b591167e0b89" could not be found.`
# Jul 12th 2019, 09:22 challgren RIP Toolbar :(
# Jul 12th 2019, 09:21 neon1024 It’s Requests::view
# Jul 12th 2019, 09:21 neon1024 Hah, now I see it :face_palm:
# Jul 12th 2019, 09:21 slackebot <neon1024>
# Jul 12th 2019, 09:21 neon1024 I’ve also lost the toolbar route entirely
# Jul 12th 2019, 09:20 neon1024 Yeah, done that
# Jul 12th 2019, 09:20 graziel try clear browser cache
# Jul 12th 2019, 09:16 neon1024 My debug kit route is failing, and I can’t remember what I did to fix it last time
# Jul 12th 2019, 08:40 neon1024 Or do I do a basic find, and switch on the resulting user data manually in the login method?
# Jul 12th 2019, 08:39 neon1024 I feel like if I build it into the finder, then `Auth->identify()` will just fail, and not really tell me why
# Jul 12th 2019, 08:39 neon1024 Is there an elegant way to feedback different login failure cases
# Jul 12th 2019, 08:30 challgren Haha
# Jul 12th 2019, 08:27 admad shouldn't you keep your sex life private?
# Jul 12th 2019, 08:18 challgren Another night in Kotlin
# Jul 12th 2019, 07:28 neon1024 Morning all :wave:
# Jul 11th 2019, 22:13 ricksaccous and always specify the optional as 0 where necessary
# Jul 11th 2019, 22:13 ricksaccous I'm just going to use 0 as my special string key
# Jul 11th 2019, 22:12 ricksaccous how annoying
# Jul 11th 2019, 22:12 ricksaccous actually in my "fix" it still is putting that portion of it as part of the GET request
# Jul 11th 2019, 22:11 ricksaccous if you had optional args i suppose you could just specify them as null though or some weird string key if you had to
# Jul 11th 2019, 22:10 ricksaccous so i did /edit/:company_id/:hospital_id/*
# Jul 11th 2019, 22:10 ricksaccous so i have two args that i need for sure and one optional
# Jul 11th 2019, 22:10 ricksaccous even if you do */* it does 3/3
# Jul 11th 2019, 22:10 ricksaccous for some reason * instead of being allowed to do whatever, it's translating to argument 0
# Jul 11th 2019, 22:09 ricksaccous yeah I got it working
# Jul 11th 2019, 22:08 ricksaccous heh
# Jul 11th 2019, 22:08 ricksaccous that matters
# Jul 11th 2019, 22:07 ricksaccous yeah
# Jul 11th 2019, 22:00 ricksaccous not sure if that matters
# Jul 11th 2019, 22:00 slackebot <ricksaccous>
# Jul 11th 2019, 21:59 challgren Ohh nm misunderstood
# Jul 11th 2019, 21:59 ricksaccous i just want /3/20
# Jul 11th 2019, 21:58 ricksaccous i don't want that though
# Jul 11th 2019, 21:58 challgren You need an ‘id’ => $hospitalEntity->id
# Jul 11th 2019, 21:57 slackebot <ricksaccous>