Log message #4099272

# At Username Text
# Nov 29th 2017, 12:24 obinoob hmic: hi, not sure I guess not much... since it is a request in my case a POST but the problem I'm facing is a totally different scenario I mean I'm using a ConnectionManager transactional since I'm inserting data in multiple tables... can I use different entities in same controller?
# Nov 29th 2017, 12:23 hmic easier than it sounds ;-)
# Nov 29th 2017, 12:23 eax That worked, thanks!
# Nov 29th 2017, 12:22 eax @hmic: Ah ok, thanks!
# Nov 29th 2017, 12:20 hmic eax: just set the code and the body string in the response you return
# Nov 29th 2017, 12:19 eax Hey folks - In Cake 3, I need to return a response with error 400, and a string in the body. Can I do that without writing middleware? I need it for one specific request, so middleware feels a little overkill.
# Nov 29th 2017, 12:12 joris_ I've put it fist in the middlewareQueue
# Nov 29th 2017, 12:11 hmic joris_: sure it's early enough in your middleware stack to be setup already when the controller runs? :~
# Nov 29th 2017, 12:09 joris_ @admad i did that, seems to never reach it
# Nov 29th 2017, 12:06 birdy247 Essentially, using the CRUD JSON api to save a record, getting the schema from the Plugins model
# Nov 29th 2017, 12:03 birdy247 but then I get a different error
# Nov 29th 2017, 12:03 birdy247 public $modelClass = "PermissionsManager.Permissions";
# Nov 29th 2017, 12:03 birdy247 I added this to the CRUD Permissions class
# Nov 29th 2017, 12:02 birdy247 getting closer
# Nov 29th 2017, 12:02 birdy247 Ah
# Nov 29th 2017, 12:01 birdy247 I tried that
# Nov 29th 2017, 12:00 hmic Plugin.Permissions, maybe?
# Nov 29th 2017, 12:00 birdy247 But Permissions lives in a plugin
# Nov 29th 2017, 12:00 birdy247 $routes->resources('Permissions');
# Nov 29th 2017, 12:00 birdy247 I have added it as a resource to the route
# Nov 29th 2017, 11:59 birdy247 Schema is not registered for a resource at path ''.
# Nov 29th 2017, 11:59 birdy247 I get this error
# Nov 29th 2017, 11:59 birdy247 trying to get a POST request to add a record
# Nov 29th 2017, 11:59 birdy247 I am using the CRUD json API
# Nov 29th 2017, 11:59 hmic what does the ajax nature of the request mean for how you deal with the data at all?
# Nov 29th 2017, 11:58 hmic validation runs on new/patchEntity - you need to use that if you want validation to kick in.
# Nov 29th 2017, 11:56 obinoob I mean is it possible to validate an ajax request that does use query builder instead entity?
# Nov 29th 2017, 11:54 obinoob can I use validator in order to validate an ajax request?
# Nov 29th 2017, 11:52 obinoob Yesterday I have placed here in the channel a few questions regarding the query builder. I have found a few inconsistencies and before I open a issue I would like to have some help in order to clarify my problem. So first question can i discard discard columns using query builder when inserting a new registry?
# Nov 29th 2017, 11:52 admad joris_: you will have to attach the listener to the global event manager instance
# Nov 29th 2017, 11:35 joris_ It never reaches the code when the event is dispatched
# Nov 29th 2017, 11:34 joris_ Attaching something to the `Controller.beforeRedirect` event from Middleware does not work?
# Nov 29th 2017, 10:55 fvanhest Hi Guys, I’m having some trouble with the naming of shells and tasks. I have a shell called ChangeSomething and a task named ChangeSomethingFoo the cli command will be bin/cake change_something change_something_foo, but I rather have bin/cake change_something foo. How do I configure this in the getOptionParser? Or should I be using another way?
# Nov 29th 2017, 10:54 cakephp344 ok thank you
# Nov 29th 2017, 10:52 hmic this is call the relation Owner and User and use the className option to tell it which table class to use
# Nov 29th 2017, 10:51 hmic CakeBot1, just alias it in the relation setup with the respective name Owner and User...
# Nov 29th 2017, 10:49 cakephp344 I'd like to use the same table for owner and user
# Nov 29th 2017, 10:49 cakephp344 table: buldings . one building has one owner and one user
# Nov 29th 2017, 10:46 cakephp344 sorry two fieds linked
# Nov 29th 2017, 10:46 cakephp344 what is the name convenction in that case?
# Nov 29th 2017, 10:45 cakephp344 my table has two fields liked to the same table