# |
Dec 2nd 2019, 12:38 |
challgren |
I hope these other plugins that I use will accept the PRs that will be coming |
# |
Dec 2nd 2019, 12:37 |
challgren |
Im guessing everything message related is now in Message and Mailer is Mailer, a bit of a seperation |
# |
Dec 2nd 2019, 12:35 |
dereuromark |
same for me with queue and others :slightly_smiling_face: mainly email related things |
# |
Dec 2nd 2019, 12:32 |
challgren |
Ok first CakePHP 4.x plugin is converted over https://github.com/narendravaghela/cakephp-mailgun/tree/cake-4.x didn’t seem to be that much of a PITA besides the message vs email that still needs to be done |
# |
Dec 2nd 2019, 11:34 |
neon1024 |
To the test suite! |
# |
Dec 2nd 2019, 11:34 |
challgren |
Nadda |
# |
Dec 2nd 2019, 11:34 |
neon1024 |
Rejiggled the query a bit |
# |
Dec 2nd 2019, 11:34 |
jotpe |
Hey :slightly_smiling_face: |
# |
Dec 2nd 2019, 11:34 |
slackebot |
<neon1024> |
# |
Dec 2nd 2019, 11:33 |
neon1024 |
Noice, thanks @ndm |
# |
Dec 2nd 2019, 11:31 |
neon1024 |
Have a look in the repo |
# |
Dec 2nd 2019, 11:30 |
challgren |
Is there a native encrypted type in the DB for 4.x? |
# |
Dec 2nd 2019, 11:29 |
ndm |
`where(..., [], true)` |
# |
Dec 2nd 2019, 11:29 |
ndm |
Oh wait, I think it's missing the override flag... |
# |
Dec 2nd 2019, 11:27 |
neon1024 |
Yeah, I was curious how I targetted a specific clause |
# |
Dec 2nd 2019, 11:26 |
neon1024 |
Everyone does! ;) |
# |
Dec 2nd 2019, 11:26 |
ndm |
ugh, i hate the new editor |
# |
Dec 2nd 2019, 11:26 |
ndm |
``` $query->where(function (QueryExpression $expression, Query $query) use ($providers) { return $query->newExpr()->or([ 'Packages.provider_id IN' => $providers, $query->clause('where') ]); }); ``` |
# |
Dec 2nd 2019, 11:26 |
neon1024 |
I’m quite shocked that it’s been deprecated with a key use-case being omitted as an alternative |
# |
Dec 2nd 2019, 11:25 |
ndm |
Yeah, but call `orWhere` multiple times and things get really ugly really fast... just a moment |
# |
Dec 2nd 2019, 11:25 |
neon1024 |
Whereas the `orWhere` nails it first time |
# |
Dec 2nd 2019, 11:25 |
slackebot |
<neon1024> |
# |
Dec 2nd 2019, 11:24 |
neon1024 |
https://book.cakephp.org/3/en/orm/query-builder.html#advanced-conditions |
# |
Dec 2nd 2019, 11:24 |
neon1024 |
That could be clearer in the docs imho |
# |
Dec 2nd 2019, 11:24 |
ndm |
If you expect this to merge with existing conditions, that doesn't work. You'll have to build it all at once, or explicitly merge with previous conditions. |
# |
Dec 2nd 2019, 11:23 |
neon1024 |
I am composing my conditions, I can’t wrap both |
# |
Dec 2nd 2019, 11:23 |
neon1024 |
I don’t see how that’s not as intended though :thinking_face: |
# |
Dec 2nd 2019, 11:23 |
ndm |
That's just a single condition |
# |
Dec 2nd 2019, 11:23 |
slackebot |
<neon1024> |
# |
Dec 2nd 2019, 11:23 |
birdy247 |
I am trying to test one of our API's |
# |
Dec 2nd 2019, 11:23 |
birdy247 |
Hi |
# |
Dec 2nd 2019, 11:22 |
ndm |
It won't when used as intended ;) |
# |
Dec 2nd 2019, 11:22 |
neon1024 |
So the callback method doesn’t add an OR, but adds an AND :S |
# |
Dec 2nd 2019, 11:13 |
neon1024 |
Nor does the callback method |
# |
Dec 2nd 2019, 11:12 |
neon1024 |
Because `orWhere()` works great for my query, but array `OR` does not return the same result |
# |
Dec 2nd 2019, 11:10 |
neon1024 |
That’s concise :( |
# |
Dec 2nd 2019, 11:10 |
neon1024 |
Ah, you use a callback function and `$query->newExpr()->or()` |
# |
Dec 2nd 2019, 11:08 |
neon1024 |
As `orWhere` is deprecated can I only use `['OR' => []]` in my `where()` now? Have we lost non-array or query clauses? |
# |
Dec 2nd 2019, 11:05 |
challgren |
4 weeks to get the new program year implemented |
# |
Dec 2nd 2019, 11:05 |
challgren |
My tech stack has too many dependencies that need to be upgrade to 4.x might be a better summer project to do. |
# |
Dec 2nd 2019, 10:59 |
challgren |
`bin/cake rector --rules cakephp40 <path/to/app>` should be `bin/cake upgrade rector --rules cakephp40 <path/to/app/src>` but Im not sure honestly |