Log message #4045574

# At Username Text
# Jun 28th 2017, 10:33 adriencs you can even do `Predictions => ['Matches.Players']`
# Jun 28th 2017, 10:33 adriencs `Predictions.Matches` = `Predictions => ['Matches']`
# Jun 28th 2017, 10:33 vix please help ->setDisplayField in model with 3 fields. In HTML Select its showing A;B;C . How to get rid of this semi colon?
# Jun 28th 2017, 10:32 adriencs work like an array
# Jun 28th 2017, 10:32 adriencs you can use dot notation in many places, usefull
# Jun 28th 2017, 10:31 adriencs you welcome
# Jun 28th 2017, 10:31 marcobimbati-cakephp Thank you again!
# Jun 28th 2017, 10:31 marcobimbati-cakephp Oh, excellent
# Jun 28th 2017, 10:30 marcobimbati-cakephp Ok, clear. What if I'll need multiple contains one day?
# Jun 28th 2017, 10:28 marcobimbati-cakephp @adriencs it worked! Thanks! :)
# Jun 28th 2017, 10:28 adriencs you can use the dot if you need to contain only one thing
# Jun 28th 2017, 10:28 savant maybe
# Jun 28th 2017, 10:27 savant $user = $this->Users->get($id, [‘contain’ => [‘Predictions’ => [‘contain’ => [‘Matches’]]]]);
# Jun 28th 2017, 10:27 adriencs :muscle:
# Jun 28th 2017, 10:27 marcobimbati-cakephp Exactly
# Jun 28th 2017, 10:27 adriencs @savant probably from Predictions.match_id
# Jun 28th 2017, 10:26 savant okay so where does the match_id in that view come from
# Jun 28th 2017, 10:25 savant Matches
# Jun 28th 2017, 10:25 marcobimbati-cakephp In any case it doesn't work for CakePHP throws an exception "Users is not associated with Matches", and that's correct. Because a user can have many Predictions, but has nothing to do with Matches. Matches are associated with the Predictions table only (and with the Teams table of course, but it's not important)
# Jun 28th 2017, 10:23 marcobimbati-cakephp Match or Matches?
# Jun 28th 2017, 10:23 savant add Match to the contian
# Jun 28th 2017, 10:20 cakephp721 and if someone else worked at it probably he thought that is good
# Jun 28th 2017, 10:19 adriencs @marcobimbati-cakephp sure
# Jun 28th 2017, 10:19 marcobimbati-cakephp Hello guys! I'm new to CakePHP and loving it. I'm stuck on a piece of cake of a problem, but as a newbie I can't figure it out. StackOverflow has a solution for CakePHP2, but I'm using 3. May I ask you?
# Jun 28th 2017, 10:19 cakephp721 yes but it helps
# Jun 28th 2017, 10:08 adriencs don't choose a library ONLY because there is an helper for cake
# Jun 28th 2017, 10:04 adriencs chartjs look good
# Jun 28th 2017, 10:04 neon1024 Love that we’ve above Symfony, https://github.com/sindresorhus/awesome#back-end-development
# Jun 28th 2017, 09:59 neon1024 Awesome list all the things
# Jun 28th 2017, 09:52 cakephp721 that helps me to use the graph wherever I want
# Jun 28th 2017, 09:52 cakephp721 is that there are an helper
# Jun 28th 2017, 09:52 cakephp721 the good of this https://github.com/destinydriven/cakephp-highcharts
# Jun 28th 2017, 09:49 savant and expose the data in a way the library works
# Jun 28th 2017, 09:48 savant I would look at that
# Jun 28th 2017, 09:48 savant here is a list of great libraries for visualizations: https://github.com/zingchart/awesome-charting
# Jun 28th 2017, 09:48 savant that should work just fine with most/all reasonable charting libraries
# Jun 28th 2017, 09:48 savant if you want to expose your json in the view
# Jun 28th 2017, 09:48 savant because js libraries change every three months
# Jun 28th 2017, 09:47 savant we dont integrate tightly with js libraries
# Jun 28th 2017, 09:47 savant no
# Jun 28th 2017, 09:47 cakephp721 there are some example of integration of d3 and cake?