Log message #4105297

# At Username Text
# Dec 21st 2017, 08:48 neon1024 https://github.com/cakephp/cakephp/blob/master/composer.json#L31
# Dec 21st 2017, 08:48 neon1024 @ludovic.barman No I don’t think so
# Dec 21st 2017, 08:45 ludovic.barman hi guys, sorry to bother. I couldn't find this info in the net. Is the latest Cakephp3.5.x using Php7 's types in the models and functions when I bake something ? e.g. it knows that the `id` in my `Article` is an `int`, etc? thanks!
# Dec 21st 2017, 08:04 em. http://mcms.local.192.168.50.78.xip.io/admin/nodes/nodes?type_id=2
# Dec 21st 2017, 07:21 rchavik yes
# Dec 21st 2017, 07:11 tukangkod guys, can we do contain inside custom find?
# Dec 21st 2017, 07:03 kant whats the role of bootstrap.php in cakephp 3 ?
# Dec 20th 2017, 23:26 braeden I want to display parent comments but limit the number of children for each parent
# Dec 20th 2017, 23:26 braeden Is there a way to limit the number of nodes displayed within a parent node for the TreeBehaviour? e.g. with a limit of 5 [0] => [1, 2, 3, 4, 5], [1] => [1, 2, 3, 4, 5]
# Dec 20th 2017, 23:18 spencdev yup. np
# Dec 20th 2017, 23:02 josexato @spencdev thank Man, it worked flawlessly:v:
# Dec 20th 2017, 22:47 josexato Nice:+1:
# Dec 20th 2017, 22:46 spencdev @josexato `find('all')->where(['id IN' => $arrOfIds])->toArray()`
# Dec 20th 2017, 22:43 braeden Good morning/afternoon everyone
# Dec 20th 2017, 22:09 josexato Good afeternoon what would be your suggestion in order to make an array of entities from an array of ids from that kind of entity?
# Dec 20th 2017, 21:55 spencdev What is the best way to access the current user on Events?
# Dec 20th 2017, 21:48 cgtag I want to update my description on the team page for the cake website. I can't remember which repo in github that belongs too?
# Dec 20th 2017, 21:47 cgtag I'm back after about a year away from the slack channel. Sorry for disappearing. Not that anyone would remember me. lol
# Dec 20th 2017, 21:47 cgtag hello all
# Dec 20th 2017, 21:13 spencdev or whichever you are.
# Dec 20th 2017, 21:13 spencdev yessir
# Dec 20th 2017, 21:13 greenjam94 oh gotcha, thanks for your help
# Dec 20th 2017, 21:12 spencdev yeap, it has something to do with how they handle the token differently. One puts it in the header, and the other puts it as a form input
# Dec 20th 2017, 21:11 greenjam94 I mean it works for every other thing I’ve done so far with cake, but trying to send a request over AJAX it fails
# Dec 20th 2017, 21:10 greenjam94 Oh, Interesting I didn’t know that
# Dec 20th 2017, 21:10 spencdev I'm not sure why, but I had the same issue awhile back ago.
# Dec 20th 2017, 21:09 spencdev Can't use Security and Csrf at the same time
# Dec 20th 2017, 21:08 greenjam94 File uploaded https://cakesf.slack.com/files/U8H4R4KNV/F8JNBTJEB/-.php / https://slack-files.com/T053DPNCM-F8JNBTJEB-c56cedea1f - <@U43JSV0SK>
# Dec 20th 2017, 21:06 greenjam94 can I create a snippet here instead of gist?
# Dec 20th 2017, 21:05 spencdev where you load `$this->loadComponent('Csrf');`
# Dec 20th 2017, 21:04 spencdev your controllers `initialize` function
# Dec 20th 2017, 21:04 greenjam94 Sorry, my initialize?
# Dec 20th 2017, 21:03 spencdev Can you gist your initialize @greenjam94
# Dec 20th 2017, 20:40 greenjam94 Hi, I need to submit a form over ajax, I have a X-CSRF-TOKEN as explained in https://book.cakephp.org/3.0/en/controllers/components/csrf.html#csrf-protection-and-ajax-requests but it errors because _Token is missing from the form. Any suggestions?
# Dec 20th 2017, 20:09 night_wulfe I'm not sure, sorry. I haven't used patchEntities before.
# Dec 20th 2017, 19:58 kailas @night_wulfe i’m trying to just do a save with associated entities. in my form I have a set of fields that have hte fields for each of the associated entities to update. however, when I do patchEntity, it doesn’t merge the new values, but just overwrites the values in the associated entities. does that make sense? why would that be occuring? I thought it would just merge in changes but leave the unchanged fields as they are
# Dec 20th 2017, 19:38 night_wulfe @kailas
# Dec 20th 2017, 19:38 night_wulfe https://book.cakephp.org/3.0/en/orm/query-builder.html#updating-data
# Dec 20th 2017, 19:38 night_wulfe I'd use the Query Builder and execute the SQL directly.
# Dec 20th 2017, 17:50 kailas or if i iterate through associated entities, and then save once, will the save be a bulk update?
# Dec 20th 2017, 17:48 kailas Is there a way to update many records at one? similar to a update (foo left join bar on foo.id=bar.foo_id) set foo.a=‘asdf’ where bar.blah=something (my syntax may be a bit off, but hta’t sthe concept). rather than iterating through my results and updating/saving one at a time?