Log message #4018596

# At Username Text
# Apr 20th 2017, 17:05 crazycoder so i do not really need it
# Apr 20th 2017, 17:05 crazycoder it is not relevant but i do not have a view content
# Apr 20th 2017, 17:04 dereuromark why is that relevant? just ignore it in the view
# Apr 20th 2017, 17:03 crazycoder i am still talking about your cakephp-ajax plugin
# Apr 20th 2017, 17:03 crazycoder @dereuromark how can i remove "content" from the json response if it is empty ?
# Apr 20th 2017, 17:00 halftroll for example, I have a table users and a table users_has_notifications. So I first need to find the ID of the receivers to then insert them into users_has_notifications
# Apr 20th 2017, 16:59 halftroll is it ok to iterate through the results of a query while doing inserts into another table ? mysql
# Apr 20th 2017, 16:49 crazycoder ->setClassName('Json') right ?
# Apr 20th 2017, 16:48 crazycoder ok i try
# Apr 20th 2017, 16:48 dereuromark JsonView
# Apr 20th 2017, 16:48 dereuromark you can also just use the cake Json class
# Apr 20th 2017, 16:47 crazycoder now it returns html
# Apr 20th 2017, 16:47 crazycoder basically i need to reply with a json format for exceptions
# Apr 20th 2017, 16:46 dereuromark I guess one could, yeah
# Apr 20th 2017, 16:46 crazycoder cakephp-ajax plugin i mean
# 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