# |
Nov 18th 2019, 08:52 |
slackebot |
!tells |
# |
Nov 18th 2019, 08:52 |
slackebot |
Command sent from Slack by admad: |
# |
Nov 18th 2019, 08:34 |
slackebot |
!tias |
# |
Nov 18th 2019, 08:34 |
slackebot |
Command sent from Slack by challgren: |
# |
Nov 18th 2019, 08:02 |
slackebot1 |
!help |
# |
Nov 18th 2019, 08:02 |
slackebot1 |
Command sent from Slack by kgb.acct.personal: |
# |
Nov 18th 2019, 07:58 |
slackebot1 |
!feature |
# |
Nov 18th 2019, 07:58 |
slackebot1 |
Command sent from Slack by pieceof: |
# |
Nov 18th 2019, 07:58 |
slackebot1 |
!bug |
# |
Nov 18th 2019, 07:58 |
slackebot1 |
Command sent from Slack by pieceof: |
# |
Nov 18th 2019, 07:41 |
javier.villanueva |
morning all |
# |
Nov 18th 2019, 07:02 |
conehead |
Oh and anyone still using phpstan? Was just wondering...I already had that error, but now that I wanted to run it again... My `TableFindByPropertyMethodReflection` class is not compatible with `MethodReflection`. Noone else got this error when running it? CakePHP version `3.8.6` and phpstan version `0.11.19` |
# |
Nov 18th 2019, 06:56 |
slackebot1 |
<conehead> |
# |
Nov 18th 2019, 06:53 |
conehead |
Alright. You might want to chain the commands. Might make it a look a little bit smoother |
# |
Nov 18th 2019, 06:52 |
francisdoydora |
I used 2 where lines instead of between |
# |
Nov 18th 2019, 06:51 |
slackebot1 |
$query->where(['ComponentCutoffs.max >= ' => $params['value']]); $query->where(['ComponentCutoffs.min <= ' => $params['value']]); $query = $query->first(); $cutoffDescription = $query->description; return $cutoffDescription; }``` |
# |
Nov 18th 2019, 06:51 |
francisdoydora |
I got it to work using these lines ```public function fetchComponentCutoffDescription($params = null) { $query = TableRegistry::getTableLocator()->get('ComponentCutoffs'); $query = $query->find(); $query->select([ 'ComponentCutoffs.description', ]); $query->where(['ComponentCutoffs.test_type_component_id =' => $params['test_type_component_id']]); |
# |
Nov 18th 2019, 06:08 |
conehead |
And are the min and max fields doubles? or integers? |
# |
Nov 18th 2019, 06:06 |
conehead |
There a reason why you don't to it via CakePHP? |
# |
Nov 18th 2019, 05:18 |
slackebot1 |
'ComponentCutoffs.min' AND 'ComponentCutoffs.max')``` |
# |
Nov 18th 2019, 05:18 |
francisdoydora |
may I ask why this returns and error ```2019-11-18 13:17:04] [22007][1292] Truncated incorrect DOUBLE value: 'ComponentCutoffs.min' [2019-11-18 13:17:04] [22007][1292] Truncated incorrect DOUBLE value: 'ComponentCutoffs.max'``` when I run this sql query? ```SELECT ComponentCutoffs.description AS `ComponentCutoffs__description` FROM component_cutoffs ComponentCutoffs WHERE (ComponentCutoffs.test_type_component_id = '1' AND 430 BETWEEN |
# |
Nov 18th 2019, 02:58 |
francisdoydora |
good morning, could you help me figure out how to populate the 'score_range_description' column with 'PASS' or 'FAIL' based on values on the right side table? I'm not very good with SQL sorry. |
# |
Nov 17th 2019, 23:54 |
challgren |
@mrfeedback ahh that would do it! |
# |
Nov 17th 2019, 20:13 |
ndm |
So... did the `exclude` option in the upgrade tool shell actually ever worked? :upside_down_face: |
# |
Nov 17th 2019, 15:35 |
mrfeedback |
is there a way to check if a test is running within a tableclass? I want to switch the folder of a behaviour in order to save into another key on AWS when testing a fileupload |
# |
Nov 17th 2019, 13:42 |
mrfeedback |
@challgren i was able to nail down the issue. I was using `__construct` in the model but without passing $config param back to `parent::__construct($config)` this was causing those strange errors |
# |
Nov 17th 2019, 11:55 |
challgren |
https://book.cakephp.org/3/en/views/helpers/form.html#creating-form-controls is a good area to read |
# |
Nov 17th 2019, 11:54 |
challgren |
https://pastebin.com/Dwxa9mve |
# |
Nov 17th 2019, 11:54 |
ender.saka |
thank you all for the help |
# |
Nov 17th 2019, 11:53 |
ender.saka |
I see |
# |
Nov 17th 2019, 11:52 |
challgren |
No there isnt but its best to do each field |
# |
Nov 17th 2019, 11:52 |
ender.saka |
@challgren you read in my mind, I was about to ask if there is already a "batch" solution in CakePHP |
# |
Nov 17th 2019, 11:52 |
challgren |
Actually that wont work |
# |
Nov 17th 2019, 11:50 |
challgren |
@ender.saka https://pastebin.com/sPPS3DgW |
# |
Nov 17th 2019, 11:49 |
ender.saka |
thank you @mrfeedback I think that the returned error text confused me :) |
# |
Nov 17th 2019, 11:49 |
challgren |
Get rid of your function and do each field as a control |
# |
Nov 17th 2019, 11:49 |
mrfeedback |
that has nothing to do with cakephp in this case :slightly_smiling_face: |
# |
Nov 17th 2019, 11:48 |
mrfeedback |
your function myMultyCreator is not in an object context. so this is why you cannot use $this->Form |
# |
Nov 17th 2019, 11:46 |
ender.saka |
... actually I am just wondering what I did wrong, Still trying to figure out the entire CakePHP architecture |
# |
Nov 17th 2019, 11:45 |
slackebot1 |
for test). I defined a function like this https://pastebin.com/hqp4sJxC but when I click to edit the article the site outputs an error like this one (attached file) |
# |
Nov 17th 2019, 11:45 |
ender.saka |
Hello, I am coming with a new question. I am patiently and slowly following the Getting Started tutorial and I arrived to the point when it teaches how to create a computed tags property and update the view/template accordingly, exactly at this point: https://book.cakephp.org/3/en/tutorials-and-examples/cms/tags-and-users.html#updating-the-views. I have tried to implement `src/Template/Articles/edit.ctp` in a slightly different way (just |