Log message #4152187

# At Username Text
# Jun 18th 2018, 14:44 itmpls trying to manage the subdomains in the db basically
# Jun 18th 2018, 14:44 itmpls anyone use a plugin related to a dynamic subdomain routing setup for 3.6+ ?
# Jun 18th 2018, 13:55 rudy1976s save works fine
# Jun 18th 2018, 13:52 josbeir how are you saving your data?
# Jun 18th 2018, 13:51 josbeir it should work
# Jun 18th 2018, 13:51 rudy1976s it is
# Jun 18th 2018, 13:51 josbeir the trough class should be the class for your join table
# Jun 18th 2018, 13:50 rudy1976s I have Posts belongsToMany Categories with a belongsToMany through association
# Jun 18th 2018, 13:50 josbeir it should work as a belongstomany is just a shorthand
# Jun 18th 2018, 13:50 josbeir then check if the trough class is working and is called etc
# Jun 18th 2018, 13:50 rudy1976s yes
# Jun 18th 2018, 13:50 josbeir @rudy1976s did you also setup the counter caches in the trough class? You need to define belongsTo definitions in the trough class
# Jun 18th 2018, 13:38 rudy1976s I cannot make coiunterCache working on belongsToMany: I have create though Class
# Jun 18th 2018, 13:27 lorenzo let’s see
# Jun 18th 2018, 13:25 mikeydotnu 2 lines of code
# Jun 18th 2018, 13:25 mikeydotnu Someone arround to verify with me if there is a bug yes or no ?
# Jun 18th 2018, 12:08 louis @bravo-kernel Any idea ?
# Jun 18th 2018, 12:06 chris-andre @mohitprakashsharma555 this was put together very quick, but you'll at least get an idea https://gist.github.com/chris-andre/b1a8cf3fd1a694d77459363bc959b384
# Jun 18th 2018, 11:56 mohitprakashsharma555 I want to result between start-date and start-time or end-date and end -time.
# Jun 18th 2018, 11:56 slackebot date('h:i')) ) )), 'fields' => array(), 'order' => 'Home.created DESC', ));
# Jun 18th 2018, 11:56 mohitprakashsharma555 $Home = $this->Home->find('all',array( 'contain' => array('LiveVideo' => array( 'conditions' => array( array('OR' => array('DATE(LiveVideo.from_date) >=' => date('Y-m-d')), array('DATE(LiveVideo.to_date) <=' => date('Y-m-d'))) //'LiveVideo.from_time >=' => date('h:i'), //array('LiveVideo.to_time <=' =>
# Jun 18th 2018, 11:56 mohitprakashsharma555 How to display data between start date and end date or start time and end time from sql using php? I develop a web-service and send data from SQL to API. But, is's based on start-date and end-date or start-time and end-time but result not get perfectly. CakePHP Query Code :
# Jun 18th 2018, 11:54 dereuromark Yes, that sounds like the best idea here
# Jun 18th 2018, 11:52 neon1024 Yeah, perhaps a custom middleware?
# Jun 18th 2018, 11:52 dereuromark maybe subdomain routing can also be combined with prefixing here, but that I never tried.
# Jun 18th 2018, 11:52 neon1024 Are you trying to use different controllers on different sub domains?
# Jun 18th 2018, 11:52 neon1024 In query?
# Jun 18th 2018, 11:51 dereuromark why do you need it?
# Jun 18th 2018, 11:51 magiq I need prefix only for controllers
# Jun 18th 2018, 11:50 magiq *different subdomains
# Jun 18th 2018, 11:50 magiq I dont want to use prefix in query since I have different domain names
# Jun 18th 2018, 11:50 magiq routing prefix works also on url
# Jun 18th 2018, 11:48 neon1024 https://book.cakephp.org/3.0/en/development/routing.html#prefix-routing
# Jun 18th 2018, 11:48 neon1024 Sounds like you’re looking for Routing Prefixes
# Jun 18th 2018, 11:47 magiq Also I want group multiple routes to use subfolder in controllers
# Jun 18th 2018, 11:47 magiq but dont know how to write it to routes
# Jun 18th 2018, 11:47 magiq I want locate my controllers at src/Controller/SomeDirectory/SomeController.php
# Jun 18th 2018, 11:46 magiq How to move controller to subfolder ?
# Jun 18th 2018, 10:44 dereuromark And ~ makes no difference here
# Jun 18th 2018, 10:43 dereuromark You seem both a bit confused about semver. ^3.6 is >=3.6 for the scope of this issue. As such it is fine to use (and does not allow 3.5 either way of course)
# Jun 18th 2018, 10:42 neon1024 Using `~` would get both it seems, https://semver.mwl.be/#?package=cakephp%2Fcakephpandversion=~3.5andminimum-stability=stable