# |
Jul 5th 2018, 15:30 |
dwms |
i use crud friendsokcake |
# |
Jul 5th 2018, 15:30 |
Diego_ |
your form formart = dd/mm/yyyy? |
# |
Jul 5th 2018, 15:30 |
dwms |
2017-12-27T00:00:00.000Z interface |
# |
Jul 5th 2018, 15:30 |
dwms |
2018-01-01T00:00:00+00:00 cakephp |
# |
Jul 5th 2018, 15:30 |
dwms |
@itmpls 2018-01-01T00:00:00+00:00 2017-12-27T00:00:00.000Z |
# |
Jul 5th 2018, 15:29 |
dwms |
diferente |
# |
Jul 5th 2018, 15:29 |
dwms |
2018-01-01T00:00:00+00:00 2017-12-27T00:00:00.000Z |
# |
Jul 5th 2018, 15:29 |
Diego_ |
@dwms set localization date type |
# |
Jul 5th 2018, 15:29 |
WyriHaximus |
bootstrap.php deprecated, that is going to be interesting :o |
# |
Jul 5th 2018, 15:29 |
itmpls |
and then change your cake stuff to insert it in the same manner |
# |
Jul 5th 2018, 15:29 |
josbeir |
what type is your 'data_nascimento' |
# |
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. |