Log message #4051000

# At Username Text
# Jul 12th 2017, 13:56 kim____ this is the contents of afterSave
# Jul 12th 2017, 13:56 kim____ https://gist.github.com/mccp/9c96c20d1890a477761ef96919acb2c3
# Jul 12th 2017, 13:55 kim____ the afterSave is implemented inside a behavior.
# Jul 12th 2017, 13:52 jeremyharris can you gist some information, such as the entity that afterSave gets. Is there a reason you aren’t using the ORM’s relationships and just adding the log to the entity on beforeSave?
# Jul 12th 2017, 13:51 kim____ still the same problem
# Jul 12th 2017, 13:51 kim____ i also tried to change afterSave to afterSaveCommit
# Jul 12th 2017, 13:48 kim____ I have a behavior that logs the creation of an entity to a LogsTable. The new log needs a reference to the new entity. So I created an afterSave for the behavior that saves the log. But i get a "Source entity needs to be persisted before proceeding" message. Shouldn't the new entity exist already?
# Jul 12th 2017, 12:41 clementcrown @casmo, thanks it worksin the .htaccess
# Jul 12th 2017, 12:39 clementcrown @casmo, thanks, let me try that
# Jul 12th 2017, 12:35 casmo I'm not sure. Maybe you can try .htaccess? https://stackoverflow.com/questions/949415/overriding-upload-max-filesize
# Jul 12th 2017, 12:34 clementcrown thanks @casmo i have added array('upload_max_filesize'=>'100000M', 'post_max_size'=>'100000M'); but i still can not upload a file of 5MB, what could be the problem please?
# Jul 12th 2017, 12:30 davalb @robertpustulka thanks, I will look into that option
# Jul 12th 2017, 12:03 casmo ini_set in the bootstrap
# Jul 12th 2017, 11:59 sauvaget Hey guys, there a possibilty to force cakephp to render a view and stop processing the rest of the controller?
# Jul 12th 2017, 11:56 clementcrown hi guys, can someone tell me where else I can increase the upload limit in cakephp 3 apart from php.ini
# Jul 12th 2017, 11:17 robertpustulka Maybe use custom validator and patchEntity instead of calling seters explicitly?
# Jul 12th 2017, 11:10 davalb Is it possible to hook into the set()-method of an entity via a behaviour? (What I want to do is: run a check, before I change an attribute. If that check fails abort the change of the attribute. For reusability-reasons I would like to implement this check in a behaviour instead of in the model)
# Jul 12th 2017, 10:59 casmo And the default is set in the table of your database, default id if I'm not wrong
# Jul 12th 2017, 10:59 casmo probably asc
# Jul 12th 2017, 10:40 neon1024 Which makes me wonder what `->order('name')` might produce
# Jul 12th 2017, 10:40 neon1024 As I can’t seem to find one
# Jul 12th 2017, 10:39 neon1024 Also, does `->order()` have a default direction?
# Jul 12th 2017, 10:30 neon1024 How does the indenting work in Bake templates? If I have 0 indents on my closing `]` I still get 4 indents (4x4 spaces) in my generated controller code
# Jul 12th 2017, 10:26 steinkel if you are lazy, you have this too > https://gist.github.com/steinkel/70e1051e5a60eea9d2e02839d1fe4345
# Jul 12th 2017, 10:25 mjabi ok
# Jul 12th 2017, 10:14 steinkel https://book.cakephp.org/3.0/en/installation.html#nginx
# Jul 12th 2017, 10:12 mjabi ?
# Jul 12th 2017, 10:12 mjabi how I configure nginx for cakephp3.x
# Jul 12th 2017, 10:12 mjabi I have installed the CakePHP3.X on ubuntu in sub directory /var/www/html/cake_app, I am using nginx , url rewriting not working, i am accessing the cake app 127.0.0.1/cake_app
# Jul 12th 2017, 09:59 davalb ok, thanks. I will look into it.
# Jul 12th 2017, 09:47 dereuromark I also once wanted to do sth like that, never had the time
# Jul 12th 2017, 09:47 dereuromark There are some 2.x plugins you could look for guidedance, there is also a symfony bundle you could adapt to cake
# Jul 12th 2017, 09:36 davalb Hello, I am looking for best practices on using a state machine with Cakephp 3.x Do you have a recommendation on which one to use or better yet a blog post about how to integrate a state machine with cakephp?
# Jul 12th 2017, 09:36 adriencs https://cakesf.slack.com/files/adriencs/F66RJNMEC/UserEntity.php
# Jul 12th 2017, 09:33 dereuromark others must have the same issue I believe..
# Jul 12th 2017, 09:33 dereuromark I should have just stayed in the local timezone :P
# Jul 12th 2017, 09:29 neon1024 @dereuromark Unfortunatly it’s not something I deal with very often being in the UTC timezone. Except when we do time sensitive stuff in British Summertime
# Jul 12th 2017, 09:29 jonasz i added there email notification, so you could implement logging to separate file, i presume
# Jul 12th 2017, 09:29 slackebot '#\\[Cake\\\\.*\\\\(BadRequestException|Missing(Controller|Action)Exception)\\]#' ] ],'''
# Jul 12th 2017, 09:29 jonasz @birdy247 i created custom handler for logs with additional features: ''' 'Log' => [ 'error' => [ 'className' => 'App\Log\MainLog', 'path' => LOGS, 'file' => 'error', 'levels' => ['warning', 'error', 'critical', 'alert', 'emergency'], 'url' => env('LOG_ERROR_URL', null), 'scopes' => [], 'email' => '', 'skipEmail' =>
# Jul 12th 2017, 09:28 neon1024 I know that birdy247 was also interested in an elegant solution