# |
Dec 2nd 2019, 13:37 |
noel |
Hi guys. I'm really struggling with this one... (posted already but no reply; ever hopeful) JSONAPI is reporting the following after a POST request – note that the post request successfully inserts a record despite this error: ```"errors": [ { "status": "404", "title": "Not Found", "detail": "A route matching \"array (\n 'controller' => '',\n 'plugin' => '',\n 0 => 1,\n '_method' => 'GET',\n |
# |
Dec 2nd 2019, 13:27 |
josbeir |
after you save an entity the id will be set for that entity |
# |
Dec 2nd 2019, 13:24 |
val |
Hi, we have Model::getLastInsertID() in 2.x. What is the alternative in 3.x? |
# |
Dec 2nd 2019, 13:07 |
dakota |
Caught it because we had a client complain about receiving somebody else's email in their own email! |
# |
Dec 2nd 2019, 13:06 |
dakota |
:+1: |
# |
Dec 2nd 2019, 12:51 |
challgren |
Thanks @dakota |
# |
Dec 2nd 2019, 12:41 |
cibyjohn |
Hi Team |
# |
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 |