Log message #4101629

# At Username Text
# Dec 6th 2017, 18:59 sab Hi all
# Dec 6th 2017, 18:41 joopm please write at the manual tha paginater does not works with *Many
# Dec 6th 2017, 18:40 joopm ohm jesus just finish with your hint hmic
# Dec 6th 2017, 18:36 JD-Robbs hmic, thanks! Oh yeah - I should add that it's not the standard PagesController. So it does have the action "privacyPolicy" which is accessible via "/pages/privacy-policy" (the latter fallback route is set after my redirect; but I also tried it the other way 'round).
# Dec 6th 2017, 18:15 hmic pages has usually only one action - display and gets a second routing parameter - that might be your case for not matching the route you think it should
# Dec 6th 2017, 18:14 hmic try setting it up explicitely, if that makes a difference please
# Dec 6th 2017, 18:14 hmic *before* you setup the redirect
# Dec 6th 2017, 18:09 JD-Robbs hmic, yep - the other route is already setup via one of the standard fallback routes
# Dec 6th 2017, 17:44 joopm okey thank you once againú
# Dec 6th 2017, 17:44 joopm :)
# Dec 6th 2017, 17:43 hmic you can setup an additional relation to the same table as hasOne and add the conditions to this relation, which in turn makes the paginator happy
# Dec 6th 2017, 17:42 hmic you could have multiple
# Dec 6th 2017, 17:42 hmic does not matter
# Dec 6th 2017, 17:42 joopm but its located in the _matchingData
# Dec 6th 2017, 17:41 joopm but if use the match than i only have one
# Dec 6th 2017, 17:41 joopm i have many Applications
# Dec 6th 2017, 17:41 joopm but now i felt it
# Dec 6th 2017, 17:41 joopm just was not sure
# Dec 6th 2017, 17:41 joopm yes you are right no *many
# Dec 6th 2017, 17:39 hmic the paginator does not handle *many
# Dec 6th 2017, 17:39 hmic whats the relation between those tables?
# Dec 6th 2017, 17:38 joopm because in that case it will be in the same
# Dec 6th 2017, 17:38 joopm thats why i need to match it
# Dec 6th 2017, 17:38 joopm than its seems its makes 2 independ query in the mysql
# Dec 6th 2017, 17:37 joopm if i use contain
# Dec 6th 2017, 17:37 joopm i need to sort with People.name
# Dec 6th 2017, 17:37 hmic contain them and use this
# Dec 6th 2017, 17:37 hmic thats how it's supposed to work
# Dec 6th 2017, 17:37 joopm how can i pass to the sortWhitelist ?
# Dec 6th 2017, 17:36 joopm now i can see those datas are in _matchingData
# Dec 6th 2017, 17:36 joopm i attached this to my find : ->matching('ThesisesSubDetails.Applications.Users.People');
# Dec 6th 2017, 17:35 hmic if it's a string, that is fine too.
# Dec 6th 2017, 17:35 hmic to be able to reconnect to a route, you need to have that route defined somewhere else
# Dec 6th 2017, 17:34 saeideng why connect() patern and redirect() pattern is same ?
# Dec 6th 2017, 17:27 hmic JD-Robbs: you you have a route for the route you redirect to setup at that time?
# Dec 6th 2017, 17:21 JD-Robbs (the difference is just that I'd like to "redirect" the route, rather than to "connect" it. I'm wanting to set-up some permalinks)
# Dec 6th 2017, 17:21 JD-Robbs I'm having a slight routing issue. This works $routes->connect('/privacy-policy', ['controller' => 'Pages', 'action' => 'privacyPolicy']); ... But this does not: $routes->redirect('/privacy-policy', ['controller' => 'Pages', 'action' => 'privacyPolicy']); ... I'd be grateful for any pointers in the right direction.
# Dec 6th 2017, 17:08 rbl222 NULL::character varying
# Dec 6th 2017, 17:08 rbl222 Should cake not detect NULL::character as a valid default?
# Dec 6th 2017, 17:08 rbl222 Does anyone know how I would have CakePHP detect DEFAULT NULL::character varying; correctly as a default, and not interpret it as a 'string' default? I currently get an error when saving a record as cake inserts 'NULL::character varying' as a string thinking it is the default...
# Dec 6th 2017, 16:23 admad Still haven't dug into it