# |
Nov 7th 2019, 15:27 |
javier.villanueva |
no, my question is if model b is a MODEL of only a relationship between model A and users |
# |
Nov 7th 2019, 15:27 |
dev.cyrusjayson |
model b could have 2 data from model a but model a always greater |
# |
Nov 7th 2019, 15:26 |
javier.villanueva |
it has more fields than model_a_id, user_id |
# |
Nov 7th 2019, 15:25 |
javier.villanueva |
and do you need model b? |
# |
Nov 7th 2019, 15:24 |
dev.cyrusjayson |
example ```Model A id 1 id 2 id 3 id 4 Model B model_a_id (1), user 1 model_a_id (2), user 1``` The output should be ``` [model_a_1][model_b_model_a_1], [model_a_2][model_b_model_a_2], [model_a_3][], [model_a_4][] ``` something like that. I hope it make sense. I tried ;) |
# |
Nov 7th 2019, 15:21 |
dev.cyrusjayson |
yes and once per user |
# |
Nov 7th 2019, 15:12 |
jotpe |
Does Model B can contain the ID of Model a just once or several times? |
# |
Nov 7th 2019, 15:02 |
dev.cyrusjayson |
I need to discuss this and maybe you guys can share your inputs ```I want to get the data from Model A and Model B Model B will be then compare to Model A id. basically the Model B contain id of Model A Model A Model B id 1 id 1 (matched) id 2 id 2 (matched) id 3 id 4 ``` what will be the association os this? how ti will look like in find/get query |
# |
Nov 7th 2019, 14:26 |
alexdd55976 |
You are welcome |
# |
Nov 7th 2019, 14:25 |
jotpe |
Thanks @alexdd55976 |
# |
Nov 7th 2019, 14:25 |
jotpe |
Which was in Application.php |
# |
Nov 7th 2019, 14:25 |
jotpe |
Yes, must be a plugin |
# |
Nov 7th 2019, 14:23 |
alexdd55976 |
did you revert the application.php to last commit to check if the changes are ok |
# |
Nov 7th 2019, 14:22 |
alexdd55976 |
controllers should not matter |
# |
Nov 7th 2019, 14:22 |
alexdd55976 |
weird |
# |
Nov 7th 2019, 14:22 |
jotpe |
Just crazy that even Cake CLI doesn't work |
# |
Nov 7th 2019, 14:21 |
jotpe |
Composer changes, some new Controllers + change Application.php |
# |
Nov 7th 2019, 14:19 |
alexdd55976 |
HD full? |
# |
Nov 7th 2019, 14:19 |
alexdd55976 |
exisiting application? |
# |
Nov 7th 2019, 14:19 |
alexdd55976 |
how did you ran into it? |
# |
Nov 7th 2019, 14:18 |
jotpe |
Should be the same |
# |
Nov 7th 2019, 14:18 |
alexdd55976 |
path to application |
# |
Nov 7th 2019, 14:17 |
jotpe |
What do you mean with path? |
# |
Nov 7th 2019, 14:17 |
jotpe |
htaccess didn't changed |
# |
Nov 7th 2019, 14:16 |
alexdd55976 |
DB connection |
# |
Nov 7th 2019, 14:16 |
alexdd55976 |
path |
# |
Nov 7th 2019, 14:16 |
alexdd55976 |
htaccess? |
# |
Nov 7th 2019, 14:15 |
jotpe |
Logs don't tell anything :S |
# |
Nov 7th 2019, 14:15 |
jotpe |
What could cause a app not working http 500 and `bin/cake` not working? |
# |
Nov 7th 2019, 13:07 |
dereuromark |
happens sometimes that it responds with timeout/500 or otherwise and next request then is fine again |
# |
Nov 7th 2019, 13:07 |
dereuromark |
it adds the huge benfit of auto-resend if API gateway has a small failure. |
# |
Nov 7th 2019, 13:07 |
dereuromark |
also usually good docs. |
# |
Nov 7th 2019, 13:06 |
dereuromark |
sure, i bet for both |
# |
Nov 7th 2019, 13:05 |
jotpe |
@dereuromark is there a example for async usage of cakephp-email-queue or cakephp-queue? |
# |
Nov 7th 2019, 13:01 |
dev.cyrusjayson |
it just a sample. just the way how I put http error code. thanks a lot @eduardo.miguel |
# |
Nov 7th 2019, 13:00 |
eduardo.miguel |
i never try to tinker with 200 or 500, maybe some 4xx ... nice |
# |
Nov 7th 2019, 12:59 |
dev.cyrusjayson |
oh it works! hahaha |
# |
Nov 7th 2019, 12:59 |
dev.cyrusjayson |
didnt work |
# |
Nov 7th 2019, 12:58 |
eduardo.miguel |
@dev.cyrusjayson response->withStatus(500); |
# |
Nov 7th 2019, 12:58 |
dereuromark |
@jotpe Make it async, use queue. best not to tigger stuff sync if not needed |
# |
Nov 7th 2019, 12:55 |
dev.cyrusjayson |
how to set http error code 200 or 500? ``` $this->response = $this->response ->withType('application/json') ->withStringBody(json_encode([ 'data'=>$data ]));``` |