Log message #4156041

# At Username Text
# Jul 5th 2018, 15:28 itmpls like Navicat
# Jul 5th 2018, 15:28 itmpls try to insert a value with a mysql editor and compare it to what you have, @dwms
# Jul 5th 2018, 15:28 josbeir relax @dwms
# Jul 5th 2018, 15:28 itmpls stop pasting please
# Jul 5th 2018, 15:28 dwms SQLSTATE[22007]: Invalid datetime format: 1292 Incorrect date value: '2017-12-27T00:00:00.000Z' for column 'data_nascimento' at row 1
# Jul 5th 2018, 15:28 dwms @itmpls help
# Jul 5th 2018, 15:28 dwms i use crud friendsokcake
# Jul 5th 2018, 15:28 itmpls ah ok
# Jul 5th 2018, 15:28 josbeir your quesiton is valid
# Jul 5th 2018, 15:27 josbeir no you are right, but it will keep working still 4.x :slightly_smiling_face:
# Jul 5th 2018, 15:27 dwms SQLSTATE[22007]: Invalid datetime format: 1292 Incorrect date value: '2017-12-27T00:00:00.000Z' for column 'data_nascimento' at row 1
# Jul 5th 2018, 15:27 dwms please
# Jul 5th 2018, 15:27 itmpls not the same thing, right?
# Jul 5th 2018, 15:27 josbeir @saeideng what will be the alternative to bootstrap when it is removed from 4.x? the deprecation warning doesn"t state
# Jul 5th 2018, 15:27 dwms SQLSTATE[22007]: Invalid datetime format: 1292 Incorrect date value: '2017-12-27T00:00:00.000Z' for column 'data_nascimento' at row 1
# Jul 5th 2018, 15:26 josbeir @itmpls https://github.com/cakephp/cakephp/pull/12309/files
# Jul 5th 2018, 15:24 josbeir definetly not in 3.x
# Jul 5th 2018, 15:24 itmpls or maybe its 4.0+ that they will be deprecated
# Jul 5th 2018, 15:24 itmpls is that not true?
# Jul 5th 2018, 15:23 itmpls i thought i heard that mentioned and someone mentioned that was from a cake mailing list discussion
# Jul 5th 2018, 15:22 josbeir hmm @itmpls where did you get that info ?
# Jul 5th 2018, 15:19 james.phillips public function validationDefault(GeneralValidator $validator) maybe should be validationDefault(\Cake\Validation\Validator $validator) ....
# Jul 5th 2018, 15:18 james.phillips @camdenbassett (IRC) looks like a namespace issue?
# Jul 5th 2018, 15:15 itmpls so in 3.7+, bootstrap.php and routes.php are deprecated? is there a page that defines/recommends the alternatives? src/Application was it? because I defined that for a plugin but bootstrap() was never called within that
# Jul 5th 2018, 15:00 james.phillips I cant get the ['CrmAddresses' => ['CrmCountries.country'=> $searchTerm]] to work...prob cos its wrong but I dont know how to write it
# Jul 5th 2018, 15:00 slackebot4 => "%$searchTerm%"], ['CrmAddresses.postcode' => $searchTerm], ['CrmAddresses' => ['CrmCountries.country'=> $searchTerm]] ] ]); });
# Jul 5th 2018, 15:00 james.phillips does anyone know how to check assoicated field via matching? ->matching('CrmAddresses', function($q) use ($searchTerm) { return $q ->andWhere([ 'OR' => [ ['CrmAddresses.addr1 LIKE' => "%$searchTerm%"], ['CrmAddresses.addr2 LIKE' => "%$searchTerm%"], ['CrmAddresses.addr3 LIKE' => "%$searchTerm%"], ['CrmAddresses.addr4 LIKE' => "%$searchTerm%"], ['CrmAddresses.addr5 LIKE'
# Jul 5th 2018, 14:59 james.phillips @bravo-kernel you know about alt3 swagger rite? ;)
# Jul 5th 2018, 14:57 james.phillips @bravo-kernel thanks for the followup
# Jul 5th 2018, 14:55 camdenbassett If anyone's interested in looking at the code for my custom validator here it is. https://thepasteb.in/p/vghOPYo0m1li3 . Luckily it's just putting out a warning and not stopping the site completely, but if anyone knows how to get rid of the warning message that would be great.
# Jul 5th 2018, 14:53 rrd564 If I do not want to select associated model's fields I use innerJoinWith and not matching. Is there a similar way to for notMatching?
# Jul 5th 2018, 14:50 bravo-kernel I will update the documentation to hopefully prevent this confusion for future users.
# Jul 5th 2018, 14:49 bravo-kernel Follow-up @james.phillips: even though this was not always requires I think it makes sense that API resources need to be in `routes.php`. JSON API requires a link for all related resources and how would Cake otherwise be able to generate the links to those resources?
# Jul 5th 2018, 14:41 camdenbassett Anyone have experience creating a custom validator which extends the normal validator? The custom validator seems to work, but I keep on getting the message "validationDefault(App\SIDev\Validation\GeneralValidator $validator) should be compatible with Cake\ORM\Table::validationDefault(Cake\Validation\Validator $validator)"
# Jul 5th 2018, 14:37 camdenbassett hello everyone
# Jul 5th 2018, 13:59 Diego_ $this->Auth->setConfig('loginRedirect', $this->referer());
# Jul 5th 2018, 13:56 Diego_ loginRedirect
# Jul 5th 2018, 13:56 Diego_ $this->Auth->setConfig('autloginRedirecthError', 'link'); ?
# Jul 5th 2018, 13:47 neon1024 As I’d kinda like to preserve the redirect url if they’re logged out due to inactivity
# Jul 5th 2018, 13:46 neon1024 Or would I just forward users from the login method?
# Jul 5th 2018, 13:46 neon1024 Can I set the Auth loginRedirect dynamically based on the user?