# |
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 |
# |
Dec 6th 2017, 16:09 |
inoas |
admad did the things help you out with http2+pagespeed? |
# |
Dec 6th 2017, 15:50 |
dereuromark |
over two years ago I outlined some of the key ingredients IMO: http://www.dereuromark.de/2015/06/06/cakephp-3-0-migration-notes/ |
# |
Dec 6th 2017, 15:49 |
dereuromark |
Well it is still the same bit of work probably. But with good preparation, smart coding for the last 2+ years it is not that hard usually. |
# |
Dec 6th 2017, 15:49 |
tomicapo |
Apart from this, is migrating to v3.x still as complicated as it was some months ago? |
# |
Dec 6th 2017, 15:46 |
tomicapo |
Thanks @dereuromark I'll write again if I find the user cron runs with is the correct one and has permission. |
# |
Dec 6th 2017, 15:46 |
tomicapo |
Just wanted to check here since I found an issue on github for an earlier version referencing this L10n class. |
# |
Dec 6th 2017, 15:45 |
tomicapo |
I will investigate what user cron runs with. Maybe it's a cPanel issue.... |
# |
Dec 6th 2017, 15:45 |
dereuromark |
yeah that wont make any difference, it cant load the file for other reasons. |