Log message #4152599

# At Username Text
# Jun 20th 2018, 11:33 lorenzo or a cookie and header
# Jun 20th 2018, 11:33 lorenzo usually a cookie, and a form value
# Jun 20th 2018, 11:33 lorenzo that means that the token needs to be submitted from 2 different sources
# Jun 20th 2018, 11:33 lorenzo cake implements the double submit algorithm
# Jun 20th 2018, 11:29 unclezoot what is the correct 3.6 way of correctly passing the CSRF token these days? I was hoping I just had to pass the X-CSRF-Token within the request header, getting the classic "'_Token' was not found in request data" error and I'd prefer not to lock cake down to 3.5
# Jun 20th 2018, 11:14 unclezoot right, makes sense. for what im doing (filtered paginate) I've just changed my left join to inner join to keep the results predictable. thanks for the answer
# Jun 20th 2018, 11:11 lorenzo and aliases usually start with an uppercase
# Jun 20th 2018, 11:11 lorenzo unclezoot, when cake cannot identify how to convert part of the result to an entity, it keeps the alias from the sql as the key for the array
# Jun 20th 2018, 10:38 unclezoot sure, that's what im doing - nemind, i can work around it, cheers neon
# Jun 20th 2018, 10:37 neon1024 I don’t know, I’m asking. I would just var_dump it to see what it’s Type is
# Jun 20th 2018, 10:37 unclezoot surprised i hadnt noticed that before
# Jun 20th 2018, 10:35 unclezoot so the resultset is a mix of entities and data?
# Jun 20th 2018, 10:34 neon1024 _matchingData isn’t an entity?
# Jun 20th 2018, 10:34 unclezoot morning, quick question: why is the associated model's data returned as lowercase when using 'contain' (left join), but is uppercased when using 'matching' (inner join), specifically within the _matchingData array?
# Jun 20th 2018, 09:54 portilloster thanks @josbeir
# Jun 20th 2018, 09:47 josbeir @portilloster if you want to avoid explicit query building check out updateAll => https://book.cakephp.org/3.0/en/orm/saving-data.html#bulk-updates
# Jun 20th 2018, 09:43 portilloster ok! thanks!!
# Jun 20th 2018, 09:43 tim `->set(['aceptado' => $aceptado, 'fechaCreacion' => $fecha])`
# Jun 20th 2018, 09:41 portilloster @tim like this? `->set(['aceptado' => $aceptado],['fechaCreacion' => $fecha])`
# Jun 20th 2018, 09:37 tim It's an array, just set multiple key => value pairs
# Jun 20th 2018, 09:34 portilloster File uploaded https://cakesf.slack.com/files/U9CUM170B/FBBQ9SA9M/-.php / https://slack-files.com/T053DPNCM-FBBQ9SA9M-1820140557
# Jun 20th 2018, 09:34 portilloster Morning guys!! I found on the documentation how to update data but the example that appears is just with one field. Anyone knows how to update multiple fields using this example below?
# Jun 20th 2018, 09:28 josbeir i think this should probably be ported to EntityContext too
# Jun 20th 2018, 09:27 josbeir there was still an issue when creating new nested entities with validation errors as the entity is not available in the parent document, this fixes that too :slightly_smiling_face:
# Jun 20th 2018, 09:25 lorenzo cool!
# Jun 20th 2018, 09:25 josbeir @lorenzo i improved the nested validation error checking in documentcontext => https://github.com/cakephp/elastic-search/pull/175 but best to merge after the 3.6.6. rls :slightly_smiling_face:
# Jun 20th 2018, 08:09 sadf okay thanks, I will look into that
# Jun 20th 2018, 08:09 neon1024 https://github.com/cakephp/orm
# Jun 20th 2018, 08:09 neon1024 Yes
# Jun 20th 2018, 08:08 sadf can I use the cakephp tableRegistry and models as a database library without using the entire cakephp framework ?
# Jun 20th 2018, 07:56 josbeir morning all
# Jun 20th 2018, 07:50 neon1024 Well cs-CZ seems to be a valid code
# Jun 20th 2018, 07:48 neon1024 Locale codes should be listed in the Intl docs on php.net
# Jun 20th 2018, 06:21 pidlo with fra config language and fra directtory is this ok.. whitch pair is for czech? or when i find this definition of locales?
# Jun 20th 2018, 06:19 pidlo i am using czech locale in appcontroller i have config language cze and dir name cs_CZ but no effect ..
# Jun 20th 2018, 06:18 pidlo hello all i have some troubles with locales in cakephp 2.8 when i migrate from 2.6 (php 5.2 to 7.0)..
# Jun 19th 2018, 19:05 dwms @lorenzo: 2012
# Jun 19th 2018, 19:02 lorenzo what version of sqlserver do you use @dwms
# Jun 19th 2018, 18:47 mikesmoniker Any ideas why prefix() doesn’t seem to be looking for my controller within the sub-namespace like I’d expect it to? https://gist.github.com/themrwilliams/7924f200ed93a786ac69843f11e6657d
# Jun 19th 2018, 18:42 slackebot works $table->patchEntity($entity, $data); $table->save($entity);```
# Jun 19th 2018, 18:42 pekka_slack Hi, I encountered an issue that I don't recall seeing, but assume it's just my lack of experience. This is regarding saving an entity with a boolean value. The MySQL DB column is set to tinyint. Setting a value to true doesn't work, but setting it to a numeric 1 works. Just curious what could be going on? ```$data[error] = true; // this doesn't work $table->patchEntity($entity, $data); $table->save($entity); $data[error] = 1; // this