Log message #4213750

# At Username Text
# 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
# Nov 17th 2019, 11:44 slackebot1 Cake\ORM\Behavior\TimestampBehavior->handleEvent(Object(Cake\Event\Event), Object(App\Model\Entity\Projectfile), Object(ArrayObject)) #3 /vendor/cakephp/cakephp/src/Event/EventManager.php(330): Cake\Event\EventManager->_callListener(Array, Object(Cake\Event\Event)) ```
# Nov 17th 2019, 11:44 mrfeedback ``` 2019-11-17 11:43:36 Error: [Error] Call to a member function getSchemaCollection() on null #0 /vendor/cakephp/cakephp/src/ORM/Behavior/TimestampBehavior.php(203): Cake\ORM\Table->getSchema() #1 /vendor/cakephp/cakephp/src/ORM/Behavior/TimestampBehavior.php(111): Cake\ORM\Behavior\TimestampBehavior->_updateField(Object(App\Model\Entity\Projectfile), 'created', true) #2 /vendor/cakephp/cakephp/src/Event/EventManager.php(353):
# Nov 17th 2019, 11:42 challgren weird
# Nov 17th 2019, 11:41 mrfeedback ah timestamp behaviour. could it be that it has a problem when a field is named "created" and has in mysql default value "CURRENT_TIMESTAMP" ?
# Nov 17th 2019, 11:40 challgren Yeah weird, but follow the stacktrace
# Nov 17th 2019, 11:40 mrfeedback hmm
# Nov 17th 2019, 11:40 mrfeedback very strange
# Nov 17th 2019, 11:40 mrfeedback whaat
# Nov 17th 2019, 11:40 mrfeedback 2019-11-17 11:39:57 Error: [Error] Call to a member function getSchemaCollection() on null
# Nov 17th 2019, 11:39 challgren Could try `$this->save($newFile, ['atomic' => false']);`
# Nov 17th 2019, 11:38 challgren So my guess is its failing to getConnection() on the table
# Nov 17th 2019, 11:38 challgren https://github.com/cakephp/cakephp/blob/3.7.9/src/ORM/Table.php#L1638
# Nov 17th 2019, 11:37 mrfeedback oh. sorry 3.7.9
# Nov 17th 2019, 11:37 challgren .?
# Nov 17th 2019, 11:37 mrfeedback 3.8
# Nov 17th 2019, 11:37 challgren What version of cake?
# Nov 17th 2019, 11:36 mrfeedback its in $this->Projecftfiles->uploadFile but it doesn´t do any db stuff before that peace of code
# Nov 17th 2019, 11:35 mrfeedback nope. or at least i wouldnt be aware of
# Nov 17th 2019, 11:34 challgren Is this wrapped in a transactional block?
# Nov 17th 2019, 11:34 slackebot1 env('AWS_S3_PREFIX').$remoteFilePathForSave.DS.$generatedFileName; return $this->save($newFile); ```
# Nov 17th 2019, 11:34 mrfeedback ``` $newFile = $this->newEntity(); $remoteFilePathForSave = (!is_null($remotePathFile))? $remotePathFile : ''; $newFile->originalfile = $originalFile; $newFile->name = $originalFilename; $newFile->filename = $originalFilename; $newFile->filesize = $fileSize; $newFile->s3bucket = (!is_null($remoteBucket)) ? $remoteBucket : env('AWS_S3_BUCKET'); $newFile->s3key =