# |
Jun 15th 2018, 15:20 |
josbeir |
@dereuromark in 7.1 theres iterable pseudo type that can be used as typehint ? |
# |
Jun 15th 2018, 15:04 |
josbeir |
File uploaded https://cakesf.slack.com/files/UAG1HNWKT/FB896HJSX/image.png / https://slack-files.com/T053DPNCM-FB896HJSX-4a7798b1e4 |
# |
Jun 15th 2018, 15:02 |
josbeir |
bit lame :P |
# |
Jun 15th 2018, 15:02 |
josbeir |
@dereuromark i know but thats not convenient, for instance when i manipulate date in beforeMarshal i need to do getArrayCopy, manipulate, then loop trough the Hash::inserted array en reset the keys on the object |
# |
Jun 15th 2018, 14:50 |
mdotobie |
does anyone have any experience using Sentry with Cake? |
# |
Jun 15th 2018, 14:47 |
itmpls |
did cake change how plugins are loaded in 3.6? |
# |
Jun 15th 2018, 14:09 |
dereuromark |
but without typehint you need to internally be defensive with check+exception etc. so typehinting just makes it a bit less clunky |
# |
Jun 15th 2018, 14:08 |
dereuromark |
those could be casted to array easily, but yeah, maybe we can keep both for now. no typehint then |
# |
Jun 15th 2018, 13:53 |
josbeir |
Hmm should Hash::insert only accept array type as its data argument, this should also work with ArrayObjects |
# |
Jun 15th 2018, 13:26 |
tim |
Then perhaps it's a routing issue |
# |
Jun 15th 2018, 13:26 |
birdy247 |
It never gets as far as the controller |
# |
Jun 15th 2018, 13:26 |
tim |
Then you need to figure out why it's 404'ing, that's something the controller returns for some reason |
# |
Jun 15th 2018, 13:25 |
birdy247 |
dd($this->_response->getStatusCode()); |
# |
Jun 15th 2018, 13:25 |
birdy247 |
I always get a 404 |
# |
Jun 15th 2018, 13:24 |
tim |
use $this->_response in your test |
# |
Jun 15th 2018, 13:21 |
birdy247 |
Id like to see the response object |
# |
Jun 15th 2018, 13:21 |
birdy247 |
I tried dd('here'); in the method I am posting to, but it never reaches it |
# |
Jun 15th 2018, 13:20 |
birdy247 |
How do I see exactly what has happened when I "post" |
# |
Jun 15th 2018, 13:20 |
birdy247 |
I am creating an integration (controller) test. |
# |
Jun 15th 2018, 13:20 |
birdy247 |
Hi |
# |
Jun 15th 2018, 12:56 |
valentin |
Hi all, anybody have a problem with stored procedure (in and out) with cakephp ? |
# |
Jun 15th 2018, 12:36 |
edgaras.jan |
Is `Router::addUrlFilter()` compatible with `new RoutingMiddleware($this, '_cake_routes_')`? It looks like it skips `Router::addUrlFilter()` from `routes.php` |
# |
Jun 15th 2018, 12:26 |
lorenzo |
use a closure that internally calls the Users method |
# |
Jun 15th 2018, 12:26 |
spriz |
The TableRegistry |
# |
Jun 15th 2018, 12:26 |
spriz |
do’h |
# |
Jun 15th 2018, 12:26 |
spriz |
Ahhh |
# |
Jun 15th 2018, 12:26 |
lorenzo |
try adding the callback in a differet way |
# |
Jun 15th 2018, 12:26 |
lorenzo |
you are requesting a connection before the test suite gets a chance to alias |
# |
Jun 15th 2018, 12:25 |
spriz |
how? |
# |
Jun 15th 2018, 12:25 |
spriz |
really |
# |
Jun 15th 2018, 12:25 |
spriz |
?! |
# |
Jun 15th 2018, 12:25 |
lorenzo |
ah, makes sense |
# |
Jun 15th 2018, 12:25 |
spriz |
@lorenzo if I remove this line from our `bootstrap.php`: `EventManager::instance()->on('Muffin/OAuth2.newUser', [TableRegistry::get('Users'), 'createOauthUser']);` it’s using the right db connection…. I’ll figure out why monday :,) :,) |
# |
Jun 15th 2018, 12:15 |
narendravaghela |
In the table |
# |
Jun 15th 2018, 12:04 |
cpierce |
in the entity or the table? |
# |
Jun 15th 2018, 11:42 |
josbeir |
https://github.com/Paradoxis/Gordon :rolling_on_the_floor_laughing::rolling_on_the_floor_laughing::rolling_on_the_floor_laughing: |
# |
Jun 15th 2018, 11:38 |
josbeir |
altho i could check it out, it its just a find and replace it would probably me less work :slightly_smiling_face: |
# |
Jun 15th 2018, 11:37 |
josbeir |
real life stuff :) |
# |
Jun 15th 2018, 11:37 |
josbeir |
and no budget to upgrade that one |
# |
Jun 15th 2018, 11:37 |
josbeir |
legacy :S |
# |
Jun 15th 2018, 11:37 |
saeideng |
just left the 1 and use 2 in your all projects , why u need to 1 again ? |