# |
Apr 12th 2019, 12:53 |
josbeir |
did you link your host timezone to your machine one ? |
# |
Apr 12th 2019, 11:43 |
dereuromark |
would be nice if cakebox shipped with it by default :slightly_smiling_face: |
# |
Apr 12th 2019, 11:30 |
steinkel |
try installing ntp in your VM |
# |
Apr 12th 2019, 11:19 |
dereuromark |
gr, restarting the vagrant box helped, for now. quite the annoying issue |
# |
Apr 12th 2019, 11:02 |
dereuromark |
how is that possible, my OS clock says current correct time :S |
# |
Apr 12th 2019, 11:02 |
dereuromark |
oh, my vagrant machine says about current timestamp: ""2019-04-09 09:07:55"" |
# |
Apr 12th 2019, 10:49 |
dereuromark |
FrozenTime @1555058998 {#513 ▼ date: 2019-04-12 08:49:58.0 +00:00 } looks all correct |
# |
Apr 12th 2019, 10:47 |
dereuromark |
`pushed ' . $this->Time->nice($pushedAt) . ' (' . $this->Time->timeAgoInWords($pushedAt) . ')` |
# |
Apr 12th 2019, 10:46 |
dereuromark |
I have a super weird time bug.. pushed 12.04.2019, 10:49 (2 days, 23 hours) That is clearly not true, that was 2 hours ago.. |
# |
Apr 12th 2019, 09:44 |
conehead |
@kgb.acct.personal Okay, thanks ;) |
# |
Apr 12th 2019, 09:43 |
kgb.acct.personal |
@conehead No |
# |
Apr 12th 2019, 09:42 |
val |
Hi, is there an easy way to suppress the console output in unit tests of `CakeLog::info(...)` calls? |
# |
Apr 12th 2019, 09:34 |
conehead |
Hm I am currently migrating to cake 3. Wondering if I should migrate to cake 4 alpha instead.... :S |
# |
Apr 12th 2019, 09:16 |
megan |
Yupp :slightly_smiling_face: - first alpha release of CakePHP 4.0.0 Strawberry https://bakery.cakephp.org/2019/04/11/cakephp_400alpha1_released.html |
# |
Apr 12th 2019, 09:09 |
Martin` |
Oh it is the alpha release, not yet the final |
# |
Apr 12th 2019, 09:01 |
Martin` |
wait already? I'm not yet done converting from 1.3 to 3.x |
# |
Apr 12th 2019, 08:54 |
heke |
So Cake4 is out. Congratualtions! |
# |
Apr 12th 2019, 07:14 |
steinkel |
please gist your configuration and relevant files |
# |
Apr 11th 2019, 23:00 |
rightscoreanalysis |
ah needed: ->allowEmpty('min_price') |
# |
Apr 11th 2019, 22:48 |
rightscoreanalysis |
the validation shouldn't fire because the condiiton is not true and where does the validation message come from because it isn't my message |
# |
Apr 11th 2019, 22:48 |
rightscoreanalysis |
using the CRUD API plugin when I try to save I get a validation error: min_price: {_empty: "This field cannot be left empty"} |
# |
Apr 11th 2019, 22:47 |
slackebot3 |
<rightscoreanalysis> |
# |
Apr 11th 2019, 22:47 |
rightscoreanalysis |
I have the following validation rule: |
# |
Apr 11th 2019, 21:43 |
abdualelah.mdy |
help plz :,'( |
# |
Apr 11th 2019, 21:41 |
abdualelah.mdy |
i tried the documentation but with no success |
# |
Apr 11th 2019, 21:41 |
abdualelah.mdy |
how to fix this ? |
# |
Apr 11th 2019, 21:40 |
abdualelah.mdy |
i set up the permissions in cakedc users and auth but no rules is working |
# |
Apr 11th 2019, 21:39 |
abdualelah.mdy |
i have problem with it |
# |
Apr 11th 2019, 21:39 |
abdualelah.mdy |
anyone using cakedc /users |
# |
Apr 11th 2019, 21:39 |
abdualelah.mdy |
hello |
# |
Apr 11th 2019, 19:59 |
itmpls |
i have other columns but I only want unique(company_id, title) |
# |
Apr 11th 2019, 19:59 |
itmpls |
do other columns matter? |
# |
Apr 11th 2019, 19:59 |
dereuromark |
this is also how it is documented on the code doc block in public function validateUnique() |
# |
Apr 11th 2019, 19:58 |
dereuromark |
it works for me this way |
# |
Apr 11th 2019, 19:57 |
itmpls |
is that not how you use scope |
# |
Apr 11th 2019, 19:57 |
itmpls |
am I missing something? |
# |
Apr 11th 2019, 19:56 |
hollistergraham123 |
Hmmm good point |
# |
Apr 11th 2019, 19:56 |
dereuromark |
not when you want proper validation feedback in forms |
# |
Apr 11th 2019, 19:55 |
hollistergraham123 |
$rules->add($rules->isUnique( [‘model’, ‘foreign_key’, ‘store_id’], ‘There is already an Inventory record for this ’ )); |
# |
Apr 11th 2019, 19:55 |
hollistergraham123 |
make it a rule I believe is a better way to do it |
# |
Apr 11th 2019, 19:40 |
itmpls |
goal: to have a unique column varchar value with a scope of 1 column (company id). attempt: `$validator->add('title', ['isUnique' => ['rule' => ['validateUnique', ['scope' => 'company_id']], 'provider' => 'table', 'required' => true, 'message' => '..']]);` . How come this allows for multiple uniques per that company id? am I misunderstanding? |