Log message #4053855

# At Username Text
# Jul 19th 2017, 07:56 saeideng probably you need return `$request`
# Jul 19th 2017, 07:52 mriec Oh I think I found it in docs. let me try
# Jul 19th 2017, 07:50 mriec any further information? I have updated from lower version of CakePHP, I do not even have an Application class. what should I do?
# Jul 19th 2017, 07:45 neon1024 Perhaps you need to enable the PSR7 middleware
# Jul 19th 2017, 07:34 mriec it works fine when I use old $response->body() method
# Jul 19th 2017, 07:31 mriec hello guys. How can I change response body since 3.4.0? In my component's shutdown event I have $controller->response = $controller->response->withStringBody($modifiedBody); rendered page is not modified. $modifiedBody does contain what I want when I debug it. any hint?
# Jul 19th 2017, 07:01 ldsign Ok fine :slightly_smiling_face:
# Jul 19th 2017, 07:00 admad i wouldn't use join table :slightly_smiling_face:
# Jul 19th 2017, 06:59 admad you can set the model in beforesave
# Jul 19th 2017, 06:59 ldsign Or is a join table (Addresses-ForeignModel) a better way?
# Jul 19th 2017, 06:58 ldsign Ok, thanks. And how can I achieve that on every save operation the Addresses.model will be injected? Is there an automatic way or should I use beforeSave for that?
# Jul 19th 2017, 06:57 admad you can use $this->alias() instead of 'Companies'
# Jul 19th 2017, 06:57 admad @ldsign nothing wrong with thats, that how you handle polymorphic relations
# Jul 19th 2017, 06:07 ldsign Ive tried it with'$this->hasMany('Addresses', [ 'foreignKey' => 'foreign_key', 'conditions' => ['Addresses.model' => 'Companies'] ]);'
# Jul 19th 2017, 06:06 ldsign Hi. Say I have an Addresses model which stores street, zipcode, city a.s.o. and I would like to attach this model to several other models (e.g. company, user) so one ore more address could be saved for this model...how can I achieve this? And whats the name of such a relation? Polymorphic?
# Jul 19th 2017, 05:55 thomasnucleus Getting 503 errors when trying to access my cake app on an amazon ec2 instance. I used this guide to setup https links for my app https://securityblog.gr/1963/cakephp-3-force-all-actions-to-require-ssl/. On aws the ec2 instance is being accessed via a load balancer which distributes the certificate. Anyone else have this issue?
# Jul 19th 2017, 02:51 blackjccl Well that's good so any problem or doubt I clear it Thank you !!!
# Jul 19th 2017, 02:50 jeremyharris ok, good luck! I know that the author of that particular plugin is in this channel quite often, so if you have questions I’m sure he’ll be around
# Jul 19th 2017, 02:50 blackjccl I see that you can do multiple uploads
# Jul 19th 2017, 02:49 blackjccl It looks good to have read your documentation
# Jul 19th 2017, 02:47 jeremyharris this one is: https://github.com/davidyell/CakePHP3-Proffer
# Jul 19th 2017, 02:47 jeremyharris oh, none of those are cake 3 plugins?
# Jul 19th 2017, 02:47 jeremyharris I don’t do a lot of file uploading myself, so I can’t recommend one personally
# Jul 19th 2017, 02:46 blackjccl Are for ckephp2 I'm using version 3 :(
# Jul 19th 2017, 02:46 blackjccl mmm
# Jul 19th 2017, 02:45 jeremyharris that repo is a good go-to list to find plugins
# Jul 19th 2017, 02:45 jeremyharris https://github.com/FriendsOfCake/awesome-cakephp#files
# Jul 19th 2017, 02:44 jeremyharris hm, there are a few out there, let me get you the list
# Jul 19th 2017, 02:44 blackjccl Do you know some plugin to upload multiple images
# Jul 19th 2017, 02:43 blackjccl Hi Jeremyharris
# Jul 19th 2017, 02:05 jeremyharris hi!
# Jul 19th 2017, 02:02 blackjccl Community
# Jul 19th 2017, 02:01 blackjccl Hello
# Jul 18th 2017, 22:22 savant not a version that can work for cake2
# Jul 18th 2017, 22:22 savant that gets latest phpunit
# Jul 18th 2017, 22:22 savant > curl --location --output /usr/local/bin/phpunit https://phar.phpunit.de/phpunit.phar
# Jul 18th 2017, 22:22 lucianohoffmann I really don´t know too, but soon i will. I´am following this documentation https://docs.gitlab.com/ce/ci/examples/php.html
# Jul 18th 2017, 22:17 cleptric So I don’t know how gitlab ci works with docker
# Jul 18th 2017, 22:16 cleptric We run the tests inside lxc containers
# Jul 18th 2017, 22:16 lucianohoffmann Thanks, I´ll try this now. I´m new in this docker stuff
# Jul 18th 2017, 22:12 cleptric It’s the only cake 2 app we run tests on gitlab