# |
Apr 3rd 2019, 20:06 |
kieran.bowler |
I'm still getting this error on my prod server. |
# |
Apr 3rd 2019, 20:05 |
lepidottero |
@ricksaccous I've tested outside the test environment and I have the same result. I'm making a rest call to update an entity and then I'm getting it back in another rest call (with the wrong data) |
# |
Apr 3rd 2019, 20:01 |
abdualelah.mdy |
it is working in my localhost without issues |
# |
Apr 3rd 2019, 20:00 |
abdualelah.mdy |
that happened after I pulled the project from GitHub into the server |
# |
Apr 3rd 2019, 20:00 |
abdualelah.mdy |
my ide |
# |
Apr 3rd 2019, 20:00 |
abdualelah.mdy |
vc |
# |
Apr 3rd 2019, 19:59 |
ricksaccous |
get a proper IDE to make things easier on yourself |
# |
Apr 3rd 2019, 19:59 |
ricksaccous |
you have a syntax error |
# |
Apr 3rd 2019, 19:59 |
abdualelah.mdy |
how can I know what wrong? |
# |
Apr 3rd 2019, 19:58 |
slackebot2 |
<abdualelah.mdy> |
# |
Apr 3rd 2019, 18:59 |
ricksaccous |
if you ran the same code outside of a test i think it should work |
# |
Apr 3rd 2019, 18:59 |
ricksaccous |
not even sure if i'm making sense/am correct about that |
# |
Apr 3rd 2019, 18:58 |
ricksaccous |
test cases use fixtures and i think what's happening is the data doesn't save as expected because fixtures are static and dynamic changes (saves etc) are dropped |
# |
Apr 3rd 2019, 18:58 |
ricksaccous |
is this in a test case? |
# |
Apr 3rd 2019, 18:58 |
ricksaccous |
do not reset the contact_form entity there |
# |
Apr 3rd 2019, 18:57 |
ricksaccous |
$contact_form = $this->contact_forms->get(1); $this->assertEquals('New header text', $contact_form->get('header_text')); |
# |
Apr 3rd 2019, 18:57 |
ricksaccous |
there's no need to re-query again here |
# |
Apr 3rd 2019, 18:49 |
lepidottero |
I've opened a thread in the forum https://discourse.cakephp.org/t/wrong-result-when-retrieving-old-data-after-an-update/5889 without any luck |
# |
Apr 3rd 2019, 18:48 |
lepidottero |
And the db has the new data correctly saved |
# |
Apr 3rd 2019, 18:48 |
lepidottero |
values are in originals |
# |
Apr 3rd 2019, 18:48 |
lepidottero |
Well, I'm having a problem updating data and getting it back. The problem is that, when I query again the data the returned entity has the old data while the changed field with the correct |
# |
Apr 3rd 2019, 18:35 |
rochasmarcelo |
yes |
# |
Apr 3rd 2019, 18:31 |
lepidottero |
Hi all! Is this the right place to have help on CakePHP 3 ? |
# |
Apr 3rd 2019, 16:17 |
asdfgh |
guys a good image upload plugin for cakephp 3.7 ? |
# |
Apr 3rd 2019, 15:35 |
neon1024 |
If you’re expecting the file, it’s clearly not been copied onto the server |
# |
Apr 3rd 2019, 15:32 |
kieran.bowler |
Thanks @neon1024 I'll check the routes. @ricksaccous yeah as far as I can tell my nginx setup is all good. |
# |
Apr 3rd 2019, 15:28 |
birdy247 |
Googles framework for cross platform Apps |
# |
Apr 3rd 2019, 15:28 |
birdy247 |
App |
# |
Apr 3rd 2019, 15:28 |
neon1024 |
Ooh, what are those? I haven’t heard of them |
# |
Apr 3rd 2019, 15:26 |
birdy247 |
Looking at flutter and dart now :slightly_smiling_face: |
# |
Apr 3rd 2019, 15:26 |
birdy247 |
but you know what I mean |
# |
Apr 3rd 2019, 15:26 |
birdy247 |
wrong word |
# |
Apr 3rd 2019, 15:25 |
birdy247 |
"easy" |
# |
Apr 3rd 2019, 15:25 |
birdy247 |
its pretty easy once you get above the clouds |
# |
Apr 3rd 2019, 15:25 |
neon1024 |
The interface for the guys in the call centre is all vue |
# |
Apr 3rd 2019, 15:25 |
birdy247 |
Similar here |
# |
Apr 3rd 2019, 15:25 |
birdy247 |
:+1: |
# |
Apr 3rd 2019, 15:25 |
neon1024 |
S’all good thanks, done a third project now which is up in prod |
# |
Apr 3rd 2019, 15:24 |
birdy247 |
How are you going with vue by the way? |
# |
Apr 3rd 2019, 15:24 |
neon1024 |
Probably variations on the same theme I would imagine |
# |
Apr 3rd 2019, 15:24 |
birdy247 |
will look at array_intersect |