# |
Apr 20th 2017, 16:45 |
crazycoder |
@dereuromark is it possible to use your component for custom exceptionrenderer ? |
# |
Apr 20th 2017, 16:29 |
dereuromark |
dont know enough about it |
# |
Apr 20th 2017, 16:28 |
sathomsen |
@dereuromark A while back you advised me to use the CRUD plugin for handling of validation errors for my REST API. I’ve done so, however the Validation Exception does not offer any detail into what validation errors occurred. Ie. say that a user tries to create the same user twice. In that case the client should receive a message to display to the client. Is this handled somewhere else in CRUD or should I just implement my own error clas |
# |
Apr 20th 2017, 16:14 |
developer1211 |
Hi guys, SaveMany duplicate the last record in database. help me get this fix |
# |
Apr 20th 2017, 15:33 |
Junior` |
yello :) |
# |
Apr 20th 2017, 15:32 |
manjaro__ |
need cake programmer for fix app |
# |
Apr 20th 2017, 15:31 |
manjaro__ |
hi all |
# |
Apr 20th 2017, 15:19 |
Neon1024 |
I’ve got it all working now, so I can finally get stuck into trying to write a query for Elasticsearch to generate my dashboard graphs |
# |
Apr 20th 2017, 15:19 |
Neon1024 |
So when my client site tried to hit the api, and thus the api tried to log to ES, it didn’t get a response :) |
# |
Apr 20th 2017, 15:18 |
Neon1024 |
Turns out my Vagrant boxes Elasticsearch wouldn’t allow connections from outside localhost |
# |
Apr 20th 2017, 15:17 |
graziel |
Neon1024 there is nice tool for ES that helped me a bit https://github.com/mobz/elasticsearch-head.git |
# |
Apr 20th 2017, 14:53 |
Neon1024 |
Lé sigh. |
# |
Apr 20th 2017, 14:53 |
Neon1024 |
protected 'message' => string 'cURL error 52: Empty reply from server' (length=38) |
# |
Apr 20th 2017, 14:53 |
artsir |
anyone have experience with godaddy and emails? I can't get it to work on their server, it works locally |
# |
Apr 20th 2017, 14:52 |
Neon1024 |
Then I can move onto why ES isn’t indexing the document :p |
# |
Apr 20th 2017, 14:51 |
Neon1024 |
So I’ll just lookup the ApiUser from the api_user_id field and insert it into the entity :D |
# |
Apr 20th 2017, 14:50 |
Neon1024 |
Turns out I don’t need to give Elasticsearch an id anyway, it’ll make one for me |
# |
Apr 20th 2017, 14:50 |
Neon1024 |
Not really, the foreign key is known, but the primary key isn't |
# |
Apr 20th 2017, 14:49 |
dereuromark |
Neon: this could only ever work with uuids. |
# |
Apr 20th 2017, 14:48 |
Neon1024 |
Can I load an association when creating a new entity? Or is it a matter of doing a find() and inserting the resulting entity into the other one |
# |
Apr 20th 2017, 14:42 |
Neon1024 |
No, it seems not. Guess you have to persist it for MySQL to assign one |
# |
Apr 20th 2017, 14:41 |
Neon1024 |
Does newEntity() add a primary key if one isn’t defined? |
# |
Apr 20th 2017, 14:29 |
Junior |
i have moved quickly, with same result |
# |
Apr 20th 2017, 14:28 |
Junior |
no worries, thank you for your time! |
# |
Apr 20th 2017, 14:28 |
Junior |
but that in aprox one hour as i have to leave |
# |
Apr 20th 2017, 14:28 |
Junior |
maybe something is there |
# |
Apr 20th 2017, 14:28 |
Junior |
i will try to move the auth related stuff to app controller |
# |
Apr 20th 2017, 14:28 |
nemmons |
sorry, i'm all out of ideas |
# |
Apr 20th 2017, 14:28 |
iqu |
ideas to make simple pagevisit counter? store users visited to session ? |
# |
Apr 20th 2017, 14:27 |
Junior |
i load the auth there |
# |
Apr 20th 2017, 14:27 |
nemmons |
oh, right sorry |
# |
Apr 20th 2017, 14:27 |
Junior |
in my case adminController handles auth |
# |
Apr 20th 2017, 14:26 |
nemmons |
well, the docs specifically say to put it in AppController which probably has something to do with the fact that AppController handles Auth |
# |
Apr 20th 2017, 14:26 |
Junior |
so it should be fine |
# |
Apr 20th 2017, 14:26 |
Junior |
although class UsersController extends AdminController |
# |
Apr 20th 2017, 14:25 |
Junior |
if i remove from appController i no longer have it in login |
# |
Apr 20th 2017, 14:25 |
Junior |
tried that, i need to have in both places |
# |
Apr 20th 2017, 14:25 |
nemmons |
have you tried removing it from AdminController and just having it in AppController? maybe having it in twice is causing a problem |
# |
Apr 20th 2017, 14:24 |
Junior |
I have added the trait in both AppConroller and AdminController |
# |
Apr 20th 2017, 14:24 |
nemmons |
or AdminController whatever |
# |
Apr 20th 2017, 14:24 |
nemmons |
no, you just need the Trait in your AppController |