Log message #4189599

# At Username Text
# Jun 14th 2019, 14:42 st.steinkuehler @scuadra This seems strange to me: `'count' => $this->find()->func()->count('*'),`
# Jun 14th 2019, 14:36 khalid According to my understand it should go to CustomExceptionRenderer, where as for Errors its working fine, it goes to CustomExceptionRenderer but not for Exceptions. what I want is to Perform some actions on each Exception (SPL,Cake or Custom) like saving in database, sending email or something like this
# Jun 14th 2019, 14:33 khalid H Guys I have generated a CustomExceptionRenderer, registered it in config/app.php, now when I am throwing an exception it is not going to Renderer but it goes to Core BaseErrorHandler and from there it set renderer and now sure what happen next.
# Jun 14th 2019, 14:25 yamcomnet Matching does not work properly. not consistent. Sometimes finds correctly when return $q->where(['Payments.id' => '123456']);
# Jun 14th 2019, 14:24 yamcomnet #Works Fine $p = $this->Entries->Payments->find() ->where(['type' => 'top-up']) ->limit(3) ->toArray() ; debug($p); #Does not Find Anything?? $test = $this->Entries->find('all',['contain' => ['Payments']]) ->limit(3); $testi = $test->matching('Payments', function($q){ return $q->where(['Payments.type' => 'top-up']); });
# Jun 14th 2019, 14:24 yamcomnet Very Strange Things happening. Cake 3.7.8.
# Jun 14th 2019, 14:20 slackebot1 'YEAR(NewsArticles.date)' => 'DESC' ]) ->toArray();
# Jun 14th 2019, 14:20 scuadra How can I select an year from date in Cake 3. I have news_articles table and I want to find the number of articles for each year. I am doing the following: $this->find('all') ->select([ 'count' => $this->find()->func()->count('*'), 'YEAR(NewsArticles.date)' ]) ->where([ 'NewsArticles.date <=' => date('Y-m-d') ]) ->group('YEAR(NewsArticles.date)') ->order([
# Jun 14th 2019, 11:13 awi hm. I dont see there any errors
# Jun 14th 2019, 11:02 neon1024 I tend to use `var_dump($entity->getErrors())` as I dont believe that DebutKit always displays them if they’re nested
# Jun 14th 2019, 11:02 neon1024 They’re in the Entities errors property with a key of the table I think
# Jun 14th 2019, 11:01 awi Does aqnyone know, where I do get model validation errors when I save associated data into BelongsToMany Table using through?
# Jun 14th 2019, 10:37 berarma Thanks. Now I see all the options.
# Jun 14th 2019, 10:23 steinkel @berarma there is a mailing list here https://nimb.ws/OjApmC see the bottom of the page at https://cakephp.org/
# Jun 14th 2019, 10:18 neon1024 @berarma If you go to cakephp.org and hover over the Community menu item on the right hand side it has links to things like the forum
# Jun 14th 2019, 10:16 berarma I'm working on an alternative to templating languages and I want to build a cakephp plugin for it. Since I work alone I'd like to have some input from anyone interested.
# Jun 14th 2019, 10:14 berarma I'll use the forums.
# Jun 14th 2019, 10:13 berarma Thanks @steinkel, so there's no mailing list I guess. I think there was one some time ago.
# Jun 14th 2019, 10:11 steinkel @berarma https://cakephp.org/pages/get-involved#getHelp
# Jun 14th 2019, 09:57 berarma OMG, I didn't know there was a forum. I wonder why I never found it on google searches. Isn't it getting indexed?
# Jun 14th 2019, 09:42 berarma Hi. Does CakePHP have a mailling list?
# Jun 14th 2019, 09:33 neon1024 Oh I see, didn’t realise, sorry
# Jun 14th 2019, 09:33 acosonic I'm still on 2 :slightly_smiling_face: but I guess I'll find it
# Jun 14th 2019, 09:33 neon1024 What is not working in that for you?
# Jun 14th 2019, 09:33 neon1024 https://book.cakephp.org/3.0/en/core-libraries/email.html#setting-headers
# Jun 14th 2019, 09:32 acosonic I figured that one, now trying to add list-unsubscribe...
# Jun 14th 2019, 09:32 acosonic @neon1024 yeah both worked
# Jun 14th 2019, 09:30 neon1024 @acosonic I think with the Cake Email class you can use `$Email->emailFormat('both')`
# Jun 14th 2019, 09:26 acosonic somehow
# Jun 14th 2019, 09:26 acosonic also... header(array('List-Unsubscribe' => $url)) I need that
# Jun 14th 2019, 09:04 scuadra @admad thank you
# Jun 14th 2019, 08:58 acosonic hm....
# Jun 14th 2019, 08:58 acosonic https://stackoverflow.com/questions/11565136/cakeemail-send-html-and-plain-text-message-manually
# Jun 14th 2019, 08:56 acosonic https://wiki.apache.org/spamassassin/Rules/MIME_HTML_ONLY
# Jun 14th 2019, 08:55 acosonic but it complains about only html email...
# Jun 14th 2019, 08:55 acosonic https://www.mail-tester.com
# Jun 14th 2019, 08:54 acosonic I'm just trying to get good score on
# Jun 14th 2019, 08:54 acosonic hi everyone, how do I send email both html and text... ?
# Jun 14th 2019, 08:42 dereuromark Also if you cant fuck up things on prod :slightly_smiling_face: I wouldnt do it for API things for example. If you forget to set local stuff you might delete/modify via live API
# Jun 14th 2019, 08:42 dereuromark Joe: for non sensible data yes
# Jun 14th 2019, 08:40 admad @scuadra it probably doesnt like empty image name. I suggest you use name for a 1x1px tranparent png instead