# |
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 = |
# |
Nov 17th 2019, 11:33 |
challgren |
Above that, the one that has transactional() |
# |
Nov 17th 2019, 11:33 |
mrfeedback |
`return $this->save($newFile);` |
# |
Nov 17th 2019, 11:33 |
challgren |
Whats line 319? |
# |
Nov 17th 2019, 11:32 |
mrfeedback |
im trying to save an entity within the ModelTableClass |
# |
Nov 17th 2019, 11:32 |
mrfeedback |
``` Error: [Error] Call to a member function transactional() on null vendor/cakephp/cakephp/src/ORM/Table.php(1926): Cake\ORM\Table->_executeTransaction(Object(Closure), true) src/Model/Table/ProjectfilesTable.php(319): Cake\ORM\Table->save(Object(App\Model\Entity\Projectfile)) ``` any Idea why I get this error? I am bit confused |
# |
Nov 17th 2019, 10:18 |
challgren |
https://book.cakephp.org/3/en/orm/deleting-data.html#Cake\ORM\Table::delete |
# |
Nov 17th 2019, 08:36 |
delete_issue |
?? |
# |
Nov 17th 2019, 07:27 |
delete_issue |
Error: Call to a member function isNew() on integer |
# |
Nov 17th 2019, 07:26 |
delete_issue |
but delet is not working |
# |
Nov 17th 2019, 07:26 |
delete_issue |
successfully got primary id . |
# |
Nov 17th 2019, 07:26 |
delete_issue |
$id = \Cake\ORM\TableRegistry::get('Ft.AdminDocs') |
# |
Nov 17th 2019, 07:26 |
delete_issue |
? |
# |
Nov 17th 2019, 07:26 |
delete_issue |
why this code is not working |
# |
Nov 16th 2019, 13:11 |
luizcmarin |
I am sure that to launch RC1 everyone involved had to make a great effort. And to meet the challenges ahead, much work will be required from everyone. Many will benefit from your work, so I would like to congratulate and thank you all for your efforts. Congratulations and thanks, thank you very much. |
# |
Nov 16th 2019, 12:08 |
vipul |
@savant i talk about socket.io, for chatting |
# |
Nov 16th 2019, 11:04 |
savant |
@vipul what do you mean by “socket” |
# |
Nov 16th 2019, 09:53 |
vipul |
any idea for this |
# |
Nov 16th 2019, 09:53 |
vipul |
Hello, any idea about socket? i want to integrate in cakePHP |
# |
Nov 16th 2019, 09:47 |
challgren |
Yeah |
# |
Nov 16th 2019, 09:41 |
shifat.it |
if guard is unnecessary here right?? |
# |
Nov 16th 2019, 09:41 |
shifat.it |
$chkFeed = $this->UserFeed->find('count', array('conditions' => array('UserFeed.user_id' => $userID))); if ($chkFeed > 0) { $this->UserFeed->deleteAll(array('UserFeed.user_id' => $userID)); } |
# |
Nov 16th 2019, 09:41 |
shifat.it |
Hello guys |
# |
Nov 16th 2019, 09:14 |
challgren |
Lol true story! |
# |
Nov 16th 2019, 09:04 |
admad |
that one's too offensive in today's millennial era :slightly_smiling_face: |
# |
Nov 16th 2019, 08:59 |
slackebot1 |
!offended |
# |
Nov 16th 2019, 08:59 |
slackebot1 |
Command sent from Slack by challgren: |
# |
Nov 16th 2019, 08:58 |
challgren |
lol |
# |
Nov 16th 2019, 08:57 |
slackebot1 |
!premature |
# |
Nov 16th 2019, 08:57 |
slackebot1 |
Command sent from Slack by admad: |
# |
Nov 16th 2019, 08:57 |
challgren |
I like that one! |
# |
Nov 16th 2019, 08:57 |
slackebot1 |
!refuctoring |
# |
Nov 16th 2019, 08:57 |
slackebot1 |
Command sent from Slack by challgren: |
# |
Nov 16th 2019, 08:56 |
slackebot1 |
!ipv6 |
# |
Nov 16th 2019, 08:56 |
slackebot1 |
Command sent from Slack by challgren: |
# |
Nov 16th 2019, 08:56 |
admad |
:slightly_smiling_face: |
# |
Nov 16th 2019, 08:55 |
challgren |
Bwhaha |
# |
Nov 16th 2019, 08:55 |
slackebot1 |
!cakephp2 |
# |
Nov 16th 2019, 08:55 |
slackebot1 |
Command sent from Slack by challgren: |
# |
Nov 16th 2019, 08:55 |
admad |
good old IRC days |
# |
Nov 16th 2019, 08:55 |
slackebot1 |
!1.1api |