# |
Feb 11th 2018, 04:26 |
humbba12 |
File uploaded https://cakesf.slack.com/files/U6DMU08AE/F98A6KN9M/-.php / https://slack-files.com/T053DPNCM-F98A6KN9M-82b4b12f77 - and I made this for testing the new changes to the database |
# |
Feb 11th 2018, 04:25 |
humbba12 |
File uploaded https://cakesf.slack.com/files/U6DMU08AE/F975N2R8T/this_is_the_original_one_before_i_added_the_groups_and_options_to_database.php / https://slack-files.com/T053DPNCM-F975N2R8T-fea512eba6 |
# |
Feb 11th 2018, 04:25 |
ricksaccous |
can you also show the $this->request->data or whatever |
# |
Feb 11th 2018, 04:25 |
ricksaccous |
can you post the debugged result? |
# |
Feb 11th 2018, 04:25 |
ricksaccous |
did you debug the result? |
# |
Feb 11th 2018, 04:25 |
humbba12 |
I tried that |
# |
Feb 11th 2018, 04:25 |
ricksaccous |
should look something like that |
# |
Feb 11th 2018, 04:24 |
ricksaccous |
the controller code |
# |
Feb 11th 2018, 04:24 |
ricksaccous |
$this->Items->patchEntity($item, ['associated' => ['Groups' => ['Options']]]); |
# |
Feb 11th 2018, 04:23 |
humbba12 |
I baked the models |
# |
Feb 11th 2018, 04:23 |
humbba12 |
what do you mean with populate? |
# |
Feb 11th 2018, 04:23 |
ricksaccous |
then you could try saving |
# |
Feb 11th 2018, 04:23 |
ricksaccous |
you should make sure you have that right first |
# |
Feb 11th 2018, 04:23 |
ricksaccous |
did you populate the entity with the other entities? |
# |
Feb 11th 2018, 04:22 |
ricksaccous |
show me the controller method |
# |
Feb 11th 2018, 04:22 |
humbba12 |
File uploaded https://cakesf.slack.com/files/U6DMU08AE/F96JTC5R6/7c3aba8731de86cba9d84d15fabff1e2526c9cb7.png / https://slack-files.com/T053DPNCM-F96JTC5R6-a28877d2a8 |
# |
Feb 11th 2018, 04:21 |
humbba12 |
I'm trying to save and item which is related with groups and groups is associated with options but it is saving only item and group but not options |
# |
Feb 11th 2018, 03:22 |
ricksaccous |
just ask your question |
# |
Feb 11th 2018, 02:30 |
humbba12 |
someone could help me out with saving associations? |
# |
Feb 11th 2018, 02:29 |
humbba12 |
Hello |
# |
Feb 11th 2018, 01:39 |
ricksaccous |
cool |
# |
Feb 11th 2018, 01:39 |
ricksaccous |
I see I'm supposed to use matching |
# |
Feb 11th 2018, 01:00 |
ricksaccous |
noooooo |
# |
Feb 11th 2018, 01:00 |
ricksaccous |
ugh why is it using autotables for categories |
# |
Feb 11th 2018, 00:56 |
ricksaccous |
$products = $this->Products->find('all')->contain(['Categories'])->where(['Categories.id' => $category->id]); |
# |
Feb 11th 2018, 00:56 |
ricksaccous |
nvm |
# |
Feb 11th 2018, 00:55 |
ricksaccous |
wait I think I know what I did |
# |
Feb 11th 2018, 00:55 |
ricksaccous |
the joins are not happening |
# |
Feb 11th 2018, 00:55 |
ricksaccous |
when I contain a HABTM model |
# |
Feb 10th 2018, 22:34 |
K4T |
any ideas, please? |
# |
Feb 10th 2018, 22:34 |
K4T |
in CakePHP 3.5 I have collection made from array. I am trying to use ->each method to unset some fields from each collection item. Unfortunatelly it looks like each is not modifing collection itself like it is mentioned in documentation. Here is the code: https://gist.github.com/K4T/8c0d271c9f6ee0bc030c90a6418a4d43 |
# |
Feb 10th 2018, 22:31 |
K4T |
hello |
# |
Feb 10th 2018, 21:49 |
jameg83 |
@admad thanks, that’s sorted it. The readme is a tad confusing as it states cakepdf expects to find “the binary in usr/bin/wkhtmltopdf”. Still I should have checked the cakepdf config file for the path. Your help is much appreciated. |
# |
Feb 10th 2018, 20:31 |
admad |
@jameg83 well then it's not surprising you get that error is cakepdf is tryingto use that path as a binary, configure it to use the path to the binary not the folder |
# |
Feb 10th 2018, 20:05 |
maymeow |
one ide.. if i have in app something what i want to add to database when application is installing or in production |
# |
Feb 10th 2018, 19:34 |
spencdev |
or a form that you use, and takes you to the other view? |
# |
Feb 10th 2018, 19:33 |
spencdev |
are you talking about like a live search that paginates? |
# |
Feb 10th 2018, 18:51 |
kitcat711 |
and then I relaod my form. Anyone with an example? |
# |
Feb 10th 2018, 18:50 |
kitcat711 |
I want to use pagination with a search form, I am trying to display the results in a different view : results and pagination works only for the first page |
# |
Feb 10th 2018, 18:11 |
jameg83 |
@admad it’s a folder. The Wkhtmltopdf binary is located within that folder. |
# |
Feb 10th 2018, 16:03 |
admad |
@jameg83 is /usr/bin/wkhtmltopdf a folder or file? |