# |
Mar 18th 2019, 21:36 |
itmpls |
how can I add another unique constraint so its 2 fields instead of one? for ex `->add('field','unique',['rule' => 'validateUnique']);` |
# |
Mar 18th 2019, 19:17 |
m |
even I did not think that haha :slightly_smiling_face: I'm just a worthless guy.. and will go cry in a corner by myself eating cookies |
# |
Mar 18th 2019, 19:16 |
admad |
@m of course if was your fault, no body thought otherwise :slightly_smiling_face: |
# |
Mar 18th 2019, 19:09 |
m |
@admad: I'm honest enough: It was my own fault, I was updating the wrong (similar named and similar path.. ) project folder .. which was still at an earlier version of Cake. So it works and is fixed. Thanks again for your help. |
# |
Mar 18th 2019, 18:28 |
m |
yes, was doing that now :slightly_smiling_face: thanks |
# |
Mar 18th 2019, 18:28 |
admad |
delete your vendor/cakephp/cakephp folder and run composer update again |
# |
Mar 18th 2019, 18:27 |
admad |
@m you mention `compact('etagMatches', 'timeMatches')` generating errors in Response class. But Response class no longer has any compact() call https://github.com/cakephp/caakephp/blob/3.7.5/src/Http/Response.php |
# |
Mar 18th 2019, 18:27 |
m |
but i can see the fix at github; so ill figure it out myself. Thanks for your time |
# |
Mar 18th 2019, 18:26 |
slackebot2 |
<birdy247> |
# |
Mar 18th 2019, 18:26 |
m |
hm; any idea why i dont have it when i'm at 3.7.5 ? |
# |
Mar 18th 2019, 18:26 |
admad |
@m that fix was done quite a quite ago, it is present in latest release |
# |
Mar 18th 2019, 18:25 |
birdy247 |
if i perform the exact same callback in "name" |
# |
Mar 18th 2019, 18:25 |
slackebot2 |
<birdy247> |
# |
Mar 18th 2019, 18:25 |
chris-andre |
@birdy247 Not sure how/why, but name has to come from somewhere? From the entity being patched? |
# |
Mar 18th 2019, 18:25 |
birdy247 |
if I check the data higher up i.e. name |
# |
Mar 18th 2019, 18:25 |
m |
ive checked github for cakephp/cakephp dev-master and i see a "php7.3" fix. Could it be that dev-master fixes that? instead of ^3.7 ? |
# |
Mar 18th 2019, 18:24 |
birdy247 |
This is odd |
# |
Mar 18th 2019, 18:23 |
m |
It's probably my fault, somewhere, but I can't put my finger on it; it seems to be Cake (to me at the moment) |
# |
Mar 18th 2019, 18:22 |
m |
admad: I am using 3.7.5 (checked the file in vendor and ran composer again given ^3.7 |
# |
Mar 18th 2019, 18:20 |
birdy247 |
yet the entity has "name" set |
# |
Mar 18th 2019, 18:20 |
birdy247 |
data is empty |
# |
Mar 18th 2019, 18:20 |
slackebot2 |
<birdy247> |
# |
Mar 18th 2019, 18:20 |
admad |
@m check vendor/cakephp/cakephp/VERSION.txt |
# |
Mar 18th 2019, 18:19 |
birdy247 |
despite other fields having data |
# |
Mar 18th 2019, 18:19 |
admad |
@m i doubt you are using latest cake 3.7 release |
# |
Mar 18th 2019, 18:19 |
birdy247 |
but the $context['data'] is empty |
# |
Mar 18th 2019, 18:19 |
birdy247 |
I am using a callback |
# |
Mar 18th 2019, 18:19 |
birdy247 |
yes |
# |
Mar 18th 2019, 18:19 |
chris-andre |
`allowEmptyString( string $field , boolean|string|callable $when true , string|null $message null )` |
# |
Mar 18th 2019, 18:16 |
birdy247 |
in allowEmptyString, is the callback only expecting 1 arg? |
# |
Mar 18th 2019, 18:15 |
birdy247 |
In the notEmpty, the callback used to have the data and context |
# |
Mar 18th 2019, 17:07 |
m |
for me the problems start with PHP7.3 and some stuff (probably) in core :P |
# |
Mar 18th 2019, 17:06 |
m |
aro: what is wrong? I've been running cake3 (mostly 3.5+) on PHP7.2 for a while now |
# |
Mar 18th 2019, 17:01 |
aro |
Weird |
# |
Mar 18th 2019, 17:01 |
jeremyharris |
the core testsuite runs on 7.2 so I wouldn’t think it would be an issue with the core |
# |
Mar 18th 2019, 17:01 |
aro |
7.0 is past EOL |
# |
Mar 18th 2019, 17:00 |
aro |
7.0? |
# |
Mar 18th 2019, 17:00 |
jeremyharris |
how so? |
# |
Mar 18th 2019, 17:00 |
alexdd55 |
weird.. but 7.0 is buggy akaik |
# |
Mar 18th 2019, 16:59 |
aro |
Well we upgraded our install of PHP from 7.0 to 7.2, and things went completely south |
# |
Mar 18th 2019, 16:59 |
jeremyharris |
I believe it always supported 7.2, as the requirements are 5.6 or greater for cake 3 |