Log message #3883890

# At Username Text
# May 30th 2016, 21:32 unholyknight Yeah, toList was being used after the data was returned. Once I went back through my trace it looked like to likely culprit.
# May 30th 2016, 21:29 admad so you left out the part which actually mattered in the code you showed above :slightly_smiling_face:
# May 30th 2016, 21:28 unholyknight @admad looks like toList was the source of it, incorrectly assumed itâ??d properly handle it as key => value pairs
# May 30th 2016, 21:23 unholyknight @admad tried using keyfield as well, but it isnâ??t working either. are inaccessible fields not allowed to be key fields for lists? thatâ??s the only reason i can come up with as to why itâ??s being ignored.
# May 30th 2016, 21:22 admad unholyknight: http://api.cakephp.org/3.2/class-Cake.ORM.Table.html#_findList
# May 30th 2016, 21:19 unholyknight if i run a find all instead itâ??s selecting the id and name columns correctly
# May 30th 2016, 21:17 unholyknight any reason why attempting this is not assigning my keys as ids and instead is defaulting to keys iterated starting with 0? $tools->find('list')->select(['id', â??name'])
# May 30th 2016, 21:16 zas_ thanks anyway
# May 30th 2016, 21:11 zas_ admad it worked ;) but why is that happening?
# May 30th 2016, 21:10 admad zas_: delete tmp/debug_kit.sqlite
# May 30th 2016, 21:08 zas_ anyone?
# May 30th 2016, 21:03 zas_ anyone knows SQLSTATE[HY000]: General error: 8 attempt to write a readonly database ?
# May 30th 2016, 20:49 kitcat71_ is _serialize working in 3.2?
# May 30th 2016, 20:24 kitcat71_ bonsoir, having a trouble with a json request->response: cake is sending a missingViewException
# May 30th 2016, 19:57 lorenzo have you tried $this->loadModel() ?
# May 30th 2016, 19:55 bakerman Registry*
# May 30th 2016, 19:55 bakerman I'm getting sick of writing "TableRegister::get(<whatever>)" a bunch. I can assign it once per controller at the top, but I was thinking of maybe creating a list of all the tables in an array and somehow using a foreach to assign it in the ApplicationController... Problem is I prefer using an object vs an array and not sure how to do that
# May 30th 2016, 19:07 rubyan I'm unit testing and a bit suprised that when saving my model, my own defined events are not fired. Is that on purpose?
# May 30th 2016, 19:06 rubyan hi there
# May 30th 2016, 18:51 unholyknight ended up checking against model id as it exists in the database at that point and is later deleted if validation fails during relational insert,
# May 30th 2016, 18:43 unholyknight in buildRules functions is there a way to access the data of a related entity during the insert? when data is inserted into the relational table i need to check it against data throughout a model table, but need values form the model insert to run the check.
# May 30th 2016, 18:17 tzvika hi!
# May 30th 2016, 18:16 AmitMerchant Hi All
# May 30th 2016, 17:44 tzvika it doesn't work . it says: Error: Unknown option prefix
# May 30th 2016, 17:44 tzvika bin/cake bake test Controller --prefix admin CustomersController
# May 30th 2016, 17:44 tzvika like this:
# May 30th 2016, 17:44 tzvika and another question. i tried generating a test for a controller which uses a prefix (admin).
# May 30th 2016, 17:42 graziel no problem
# May 30th 2016, 17:41 huhwatnou slackebot, thank you!
# May 30th 2016, 17:41 graziel huhwatnou security [at] http://cakephp.org|cakephp.org
# May 30th 2016, 17:41 huhwatnou seems a good idea not to post it to a publicly accessible spot
# May 30th 2016, 17:40 huhwatnou slackebot, do you know the email address for security issues or where i can find it?
# May 30th 2016, 17:40 tzvika hmic, thanks , beforerender did the job!
# May 30th 2016, 17:39 hmic the request is available on purpose. if the data is in there, you might use it. if not, appcontroller beforerender or bevorerender eventlistener
# May 30th 2016, 17:38 tzvika yes , but if is set it in the controller it would look cleaner in layout, right?
# May 30th 2016, 17:37 hmic pro tip: the request is available from the view as from the controller, so $this->request works from the view too, which lets you access the session and auth directly
# May 30th 2016, 17:36 hmic use appcontroller beforeRender callback, or set an eventlistener for the beforeRender event
# May 30th 2016, 17:36 tzvika hmic - you are right :)
# May 30th 2016, 17:36 hmic so: how can i set a variable to be available to any view/layout?
# May 30th 2016, 17:35 hmic and your question is not about a specific view or layout in this case.
# May 30th 2016, 17:35 hmic tzvika, you could use the appcontroller