Log message #4102221

# At Username Text
# Dec 9th 2017, 13:22 JD-Robbs I wonder what's the best way to initialise entity properties. Should I override the constructor and set it there?
# Dec 9th 2017, 12:47 patsuckow Right! Thank you so much!
# Dec 9th 2017, 12:44 admad 'Products.category_id IN' => $ids
# Dec 9th 2017, 12:41 patsuckow Can somebody help me ?: Why when calling: $products = $this->Products->find()->select(['id', 'title', 'price', 'img'])->where(['Products.category_id' => $ids])->toArray(); an error is displayed: Cannot convert value to integer
# Dec 9th 2017, 12:01 JD-Robbs Awesome, that PR fixes it
# Dec 9th 2017, 12:00 JD-Robbs admad, thanks for the pointer! Had a look and I guess it's this: https://github.com/cakephp/cakephp/pull/11518
# Dec 9th 2017, 11:58 admad JD-Robbs: there's already an issue and PR for it on GitHub
# Dec 9th 2017, 11:56 JD-Robbs I have an issue where debugging is rather unhelpful due to TypeError while the exception renderer expects an Exception. Would anyone know how this can be debugged?
# Dec 9th 2017, 11:36 JD-Robbs saeideng, what I mean is that DebugKit doesn't load its routes "normally". Instead, it requires the routes.php during bootstrap. But this has helped me now as I am now doing the same thing to ensure my routes are available in my middleware.
# Dec 9th 2017, 11:21 patsuckow Hello everybody! Except me, are there developers from Russia?
# Dec 9th 2017, 10:35 saeideng and plugin routes
# Dec 9th 2017, 10:35 saeideng yes
# Dec 9th 2017, 10:11 JD-Robbs Ahaaa! DebugKit loads the routes in bootstrap.php
# Dec 9th 2017, 10:04 saeideng match() for generating urls
# Dec 9th 2017, 10:04 saeideng match() / pars()
# Dec 9th 2017, 10:04 saeideng RouteClass has 2 methods
# Dec 9th 2017, 10:03 saeideng what you mean from before/after route ?
# Dec 9th 2017, 10:03 saeideng I'm not sure you able to apply RouteClass before/after of routes
# Dec 9th 2017, 10:02 saeideng jd-robbs
# Dec 9th 2017, 10:01 JD-Robbs Oh sorry xD
# Dec 9th 2017, 10:01 saeideng ra7bi?
# Dec 9th 2017, 10:01 JD-Robbs Yup, latest everything
# Dec 9th 2017, 10:00 saeideng latest version of debugkit?
# Dec 9th 2017, 10:00 JD-Robbs For example, how does DebugKit manage it to have it's routes defined before my app even reached the ROutingMiddleware middleware in my stack?
# Dec 9th 2017, 09:58 JD-Robbs However, I need to run some code in a custom RouteClass *before* and some *after* certain groups of routes have been defined. Can this be solved somehow?
# Dec 9th 2017, 09:57 JD-Robbs Argh, worked out it was the middleware order in Application
# Dec 9th 2017, 09:54 JD-Robbs When I run Router::getRouteCollection() inside a middleware, I don't get any of my own routes yet (only ones from DebugKit are setup). So just wondering how I can get my own?
# Dec 9th 2017, 08:55 ra7bi when i clicked on Variables
# Dec 9th 2017, 08:55 ra7bi that was the browser console output
# Dec 9th 2017, 08:55 ra7bi debugKit not able to show Variables tab '/debug-kit/panels/view/592ab69d-7e5b-45ec-9df7-c587d360eb97 500 (Internal Server Error)'
# Dec 8th 2017, 22:35 meder one of those fields is a datetime. i'm guessing it craps out on that
# Dec 8th 2017, 22:35 meder why do i get "Unexpected data found" when specifying $entity->toArray() to a patchEntity? i just want to adjust 1 or 2 fields in my entity and use a validation method
# Dec 8th 2017, 15:32 hmic or clean it up :D
# Dec 8th 2017, 15:32 hmic i'd try that. after the first erro
# Dec 8th 2017, 15:29 jotpe or what would be a good solution?
# Dec 8th 2017, 15:29 jotpe and then migrate every plugin step by step?
# Dec 8th 2017, 15:28 hmic :P
# Dec 8th 2017, 15:28 hmic jotpe: why not upgrade without plugins?
# Dec 8th 2017, 15:27 jotpe when using the upgrade tool all command, my app is messed up. f.e. all plugin controllers are in app/src/Controllers and not in the corresponding plugin folder. Did i missed some preparation?
# Dec 8th 2017, 14:33 hmic technically cou can register to listen to an event whenever you like to, as long as it happens before the event gets fired in your program flow
# Dec 8th 2017, 14:32 hmic can/should be in the plugins bootstrap and plugin be loaded with bootstrap => true in the options array...