# |
Apr 4th 2019, 10:55 |
neon1024 |
Didn’t look into it |
# |
Apr 4th 2019, 10:54 |
dereuromark |
why not using my dtos then?^^ |
# |
Apr 4th 2019, 10:53 |
neon1024 |
I think new classes would be cleaner |
# |
Apr 4th 2019, 10:52 |
neon1024 |
I’m looking to mimic the functionality of Fractal, and I can’t decide if I should make my transformers their own class, implementing an interface, or if they should be entity mutation methods |
# |
Apr 4th 2019, 08:17 |
neon1024 |
Morning all :wave: |
# |
Apr 4th 2019, 07:26 |
patox44 |
1 problem. I have numbers. How can I make array with keys? |
# |
Apr 4th 2019, 07:10 |
patox44 |
`$connection->execute($query)->fetchAll('assoc');` How can I fetch it not to object, but to array? I need array of arrays |
# |
Apr 4th 2019, 06:48 |
kgb.acct.personal |
Hello everyone, How do you handle large amount of resultset in cakephp? Do you just get the total count then loop on every record? |
# |
Apr 4th 2019, 03:39 |
chan |
@challgren thanks |
# |
Apr 4th 2019, 03:31 |
challgren |
@chan https://support.google.com/docs/answer/183965?co=GENIE.Platform%3DDesktopandhl=en |
# |
Apr 4th 2019, 03:29 |
challgren |
@chan that would be something to look at Google drive support |
# |
Apr 4th 2019, 03:27 |
chan |
hello everyone, how to show my document with google drive. file exist but alway show `No preview available`. please can you give advise me.thanks. my code is following. ``` <iframe src="https://docs.google.com/gview?url=http://192.168.87.140/files/user_cv/40/JS449854_ss.docxandembedded=true" frameborder="0"></iframe> ``` |
# |
Apr 3rd 2019, 20:38 |
kieran.bowler |
Turns out that I had changed the namespace on the prod server. All sorted now thanks! |
# |
Apr 3rd 2019, 20:27 |
flashios09 |
check the file name, maybe you have something like this: - Pagescontroller.php - pagesController.php - pagescontroller.php |
# |
Apr 3rd 2019, 20:26 |
flashios09 |
if it works on local and break on prod, maybe it’s *case sensitivity* |
# |
Apr 3rd 2019, 20:26 |
kieran.bowler |
but still getting the same error |
# |
Apr 3rd 2019, 20:26 |
kieran.bowler |
I've changed it back to `App` now as it should be |
# |
Apr 3rd 2019, 20:26 |
kieran.bowler |
I realised that was the namespace I (incorrectly) changed it to |
# |
Apr 3rd 2019, 20:25 |
flashios09 |
@kieran.bowler what’s `MyWeb` ? |
# |
Apr 3rd 2019, 20:06 |
kieran.bowler |
The file definitely exists though. |
# |
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 |