Log message #4227722

# At Username Text
# Feb 18th 2020, 23:28 challgren your redirect maybe cached in your browser
# Feb 18th 2020, 23:28 rightscoreanalysis hi @dereuromark btw
# Feb 18th 2020, 23:28 rightscoreanalysis but still redirected to admin/
# Feb 18th 2020, 23:27 slackebot <rightscoreanalysis>
# Feb 18th 2020, 23:27 rightscoreanalysis so my array is now
# Feb 18th 2020, 23:21 dereuromark @rightscoreanalysis https://github.com/dereuromark/cakephp-tools/blob/master/src/View/Helper/UrlHelper.php#L86 is the reason I use such helper methods a lot inside layouts as well. in your case you need it for the Auth config array URLs.
# Feb 18th 2020, 23:20 MrEm Well, I think my perspective is less about finding a trick, but more about thinking of collections as a whole - rather than a sum of parts, i fthat makes sense
# Feb 18th 2020, 23:20 dereuromark alan-a: always set up your login routes with proper defaults.
# Feb 18th 2020, 23:20 rightscoreanalysis admin/user/login is not found
# Feb 18th 2020, 23:19 rightscoreanalysis when I try to access a route which I do not have access to: /admin/users/index my app attempts to redirect to login, but it goes to admin/users/login - not users/login
# Feb 18th 2020, 23:19 dereuromark Any Hash or collection trick would do the same, but it might not be worth trying to find those until they work as expected.
# Feb 18th 2020, 23:18 dereuromark or other helper methods somewhere. dont be afraid of some loops, as long as they are wrapped inside a method cleanly.
# Feb 18th 2020, 23:17 MrEm Yeah, I think that would make sense
# Feb 18th 2020, 23:14 dereuromark loaded = contained
# Feb 18th 2020, 23:14 dereuromark I throw an exception if the events havent been loaded (developer error, if null)
# Feb 18th 2020, 23:13 MrEm Hm, that's a possibility
# Feb 18th 2020, 23:11 dereuromark ->events() etc here
# Feb 18th 2020, 23:10 dereuromark you can always write small methods on the entity to fetch sub parts the way you want them.
# Feb 18th 2020, 23:08 MrEm Or do I have to foreach ($reservations as $reservation) { $events []= $reservation->events
# Feb 18th 2020, 23:08 MrEm Then can I do something like $reservations->events
# Feb 18th 2020, 23:08 MrEm So: $reservations = $this->Reservations->find('all' ....
# Feb 18th 2020, 23:07 MrEm Like if I do a find('all') on, say Reservations, and with Reservations I "contain" Events (which are associated)
# Feb 18th 2020, 23:07 MrEm Does Cake have a built in way, on a Collection, to get all the associated records in one go, or do I need to loop through the collection and collect them manually?
# Feb 18th 2020, 22:13 ricksaccous makes sense
# Feb 18th 2020, 21:51 challgren 3.5 to 4.x isnt that much of a change but better type defined.
# Feb 18th 2020, 21:51 challgren Yeah, mainly due to typing the functions thats only supported in php 7.1+
# Feb 18th 2020, 21:50 ricksaccous i'm guessing that's what you mean or am i wrong composer wise as well?
# Feb 18th 2020, 21:50 ricksaccous but he prob changed more of the plugin for the 4.0.0-beta tag, heh
# Feb 18th 2020, 21:49 ricksaccous i thought that was an or so it would be from 3.5 <= 3.9 or 4.0 +
# Feb 18th 2020, 21:49 ricksaccous oh really? dayum
# Feb 18th 2020, 21:27 challgren And also FYI cake 3.x plugins will never work with 4.x without some modification so ^3.5|^4.0 will not work
# Feb 18th 2020, 21:04 ricksaccous thank you kindly
# Feb 18th 2020, 21:04 ricksaccous okay i'll just delete it
# Feb 18th 2020, 21:03 challgren Yeah your PR is on master but theres a cake-4.x that has the correct constraints
# Feb 18th 2020, 21:03 ricksaccous yeah that works
# Feb 18th 2020, 21:03 challgren try 4.0.0-beta
# Feb 18th 2020, 21:03 ricksaccous Problem 1 - The requested package admad/cakephp-glide 4.0.0@beta exists as admad/cakephp-glide[1.0.0, 1.0.1, 1.0.2, 1.0.3, 1.x-dev, 2.0.0, 3.0.0, 3.0.1, 3.0.2, 3.1.0, 4.0.0-beta, dev-cake-4.x, dev-master] but these are rejected by your constraint.
# Feb 18th 2020, 21:01 ricksaccous okay, should i just remove the pr then?
# Feb 18th 2020, 21:01 challgren Change your glide version to 4.0.0@beta
# Feb 18th 2020, 21:01 ricksaccous i'm not that good with composer
# Feb 18th 2020, 21:00 ricksaccous is that why it's not working? lol