# |
Feb 8th 2020, 21:27 |
mrfeedback |
i want the results to be part of the resultset like when i use contain |
# |
Feb 8th 2020, 21:27 |
ndm |
@hi You are missing the return type declaration that's show in the error message. However you shouldn't use the blog tutorial, it's outdated and has been removed from the docs TOC for a reason. Do the CMS tutorial instead. |
# |
Feb 8th 2020, 21:26 |
mrfeedback |
when using `matching` |
# |
Feb 8th 2020, 21:22 |
hi |
https://i.imgur.com/fvkHi3O.png |
# |
Feb 8th 2020, 21:20 |
hi |
i have a problem with cake - Blog Tutorial - Authentication and Authorization |
# |
Feb 8th 2020, 21:20 |
hi |
hi |
# |
Feb 8th 2020, 15:33 |
rudy1976s |
good afternoon! I am trying to instal latest release of CakeDC Users plugin but I am finding problems extending controller to be able to load my custom layout for displaying login page. Do the doc is updated ? Anyone here installed it ? |
# |
Feb 8th 2020, 15:05 |
lpj145 |
Yours have milestones to some cake libraries what the interested people can be help ? |
# |
Feb 8th 2020, 15:04 |
lpj145 |
What you think about validations message ? Laravel implement some messages to validation, you think about add default locale based messages ? |
# |
Feb 8th 2020, 15:01 |
lpj145 |
@savant is a good empty anwser, but, keep going, some peoples can reflect about assunpt. |
# |
Feb 8th 2020, 13:04 |
jan-willem |
Exactly. |
# |
Feb 8th 2020, 13:02 |
dsar |
Laravel has some nicer syntax in some places, but I find CakePHP generally better |
# |
Feb 8th 2020, 12:59 |
jan-willem |
For work I'm working now for half a year in Laravel. So far, not really convinced Laravel is better then CakePHP. Both have their cons and pros |
# |
Feb 8th 2020, 12:56 |
dsar |
Nice ;) |
# |
Feb 8th 2020, 12:56 |
jan-willem |
Working on a new side-project to keep track of the scores of a card-game 8) |
# |
Feb 8th 2020, 12:55 |
dsar |
Ok then |
# |
Feb 8th 2020, 12:55 |
dsar |
This is available since 3.3 |
# |
Feb 8th 2020, 12:55 |
jan-willem |
4.03 |
# |
Feb 8th 2020, 12:55 |
dsar |
What version of CakePHP do you have? |
# |
Feb 8th 2020, 12:55 |
jan-willem |
A, perfect. Missed that one indeed. |
# |
Feb 8th 2020, 12:52 |
dsar |
https://book.cakephp.org/4/en/orm/validation.html#association-count-rules |
# |
Feb 8th 2020, 12:52 |
dsar |
I don't understand precisely, do you mean something like this? |
# |
Feb 8th 2020, 12:26 |
jan-willem |
What is the best approach to limit the amount to create an associations? I know there is the limit option in the association, but this doesn't limit in creating a new association (correct me if I'm wrong :$ ) Should I handle this in the validation itself? |
# |
Feb 8th 2020, 03:45 |
savant |
There aren’t that many people in the slack @lpj145 because we’re all busy being productive in cakephp ;) |
# |
Feb 8th 2020, 03:18 |
challgren |
CLI vs Apache Env might be different just a FYI |
# |
Feb 8th 2020, 03:15 |
wizardfix |
checking... |
# |
Feb 8th 2020, 03:15 |
wizardfix |
OK maybe my env() isn't working as I just substituted it for hard coded values |
# |
Feb 8th 2020, 03:14 |
challgren |
You need to first make sure the cake app can connect to the db |
# |
Feb 8th 2020, 03:13 |
challgren |
Yes |
# |
Feb 8th 2020, 03:13 |
wizardfix |
I created the tables from an SQL file I wrote, can I just convert that into a migration file somehow maybe? |
# |
Feb 8th 2020, 03:11 |
wizardfix |
is that set in app.php? |
# |
Feb 8th 2020, 03:07 |
challgren |
Does the user have all privs in mariadb? |
# |
Feb 8th 2020, 03:05 |
wizardfix |
V 3.8 btw :) |
# |
Feb 8th 2020, 02:59 |
slackebot |
/opt/lampp/htdocs/trportal/vendor/cakephp/cakephp/src/Console/CommandRunner.php(385): Cake\Console\Shell->runCommand(Array, true) #17 /opt/lampp/htdocs/trportal/vendor/cakephp/cakephp/src/Console/CommandRunner.php(162): Cake\Console\CommandRunner->runShell(Object(Bake\Shell\BakeShell), Array) #18 /opt/lampp/htdocs/trportal/bin/cake.php(12): Cake\Console\CommandRunner->run(Array) #19 {main}``` |
# |
Feb 8th 2020, 02:59 |
slackebot |
/opt/lampp/htdocs/trportal/vendor/cakephp/bake/src/Shell/Task/SimpleBakeTask.php(91): Migrations\Shell\Task\MigrationSnapshotTask->bake('Initial') #14 /opt/lampp/htdocs/trportal/vendor/cakephp/cakephp/src/Console/Shell.php(531): Bake\Shell\Task\SimpleBakeTask->main('Initial') #15 /opt/lampp/htdocs/trportal/vendor/cakephp/cakephp/src/Console/Shell.php(524): Cake\Console\Shell->runCommand(Array, false, Array) #16 |
# |
Feb 8th 2020, 02:59 |
slackebot |
Migrations\Shell\Task\MigrationSnapshotTask->templateData() #11 /opt/lampp/htdocs/trportal/vendor/cakephp/migrations/src/Shell/Task/SimpleMigrationTask.php(95): Bake\Shell\Task\SimpleBakeTask->bake('Initial') #12 /opt/lampp/htdocs/trportal/vendor/cakephp/migrations/src/Shell/Task/MigrationSnapshotTask.php(47): Migrations\Shell\Task\SimpleMigrationTask->bake('Initial') #13 |
# |
Feb 8th 2020, 02:59 |
slackebot |
/opt/lampp/htdocs/trportal/vendor/cakephp/migrations/src/TableFinderTrait.php(51): Cake\Database\Schema\Collection->listTables() #9 /opt/lampp/htdocs/trportal/vendor/cakephp/migrations/src/Shell/Task/MigrationSnapshotTask.php(75): Migrations\Shell\Task\MigrationSnapshotTask->getTablesToBake(Object(Cake\Database\Schema\CachedCollection), Array) #10 /opt/lampp/htdocs/trportal/vendor/cakephp/bake/src/Shell/Task/SimpleBakeTask.php(104): |
# |
Feb 8th 2020, 02:59 |
slackebot |
/opt/lampp/htdocs/trportal/vendor/cakephp/cakephp/src/Core/Retry/CommandRetry.php(67): Cake\Database\Connection->Cake\Database\{closure}() #6 /opt/lampp/htdocs/trportal/vendor/cakephp/cakephp/src/Database/Connection.php(305): Cake\Core\Retry\CommandRetry->run(Object(Closure)) #7 /opt/lampp/htdocs/trportal/vendor/cakephp/cakephp/src/Database/Schema/Collection.php(63): Cake\Database\Connection->execute('SHOW TABLES FRO...', Array) #8 |
# |
Feb 8th 2020, 02:59 |
slackebot |
/opt/lampp/htdocs/trportal/vendor/cakephp/cakephp/src/Core/Retry/CommandRetry.php(67): Cake\Database\Connection->Cake\Database\{closure}() #3 /opt/lampp/htdocs/trportal/vendor/cakephp/cakephp/src/Database/Connection.php(352): Cake\Core\Retry\CommandRetry->run(Object(Closure)) #4 /opt/lampp/htdocs/trportal/vendor/cakephp/cakephp/src/Database/Connection.php(301): Cake\Database\Connection->query('SHOW TABLES FRO...') #5 |
# |
Feb 8th 2020, 02:59 |
slackebot |
/opt/lampp/htdocs/trportal/vendor/cakephp/cakephp/src/Database/Statement/MysqlStatement.php on line 38 Stack Trace: #0 /opt/lampp/htdocs/trportal/vendor/cakephp/cakephp/src/Database/Statement/MysqlStatement.php(38): PDOStatement->execute(NULL) #1 /opt/lampp/htdocs/trportal/vendor/cakephp/cakephp/src/Database/Connection.php(349): Cake\Database\Statement\MysqlStatement->execute() #2 |
# |
Feb 8th 2020, 02:59 |
slackebot |
server version for the right syntax to use near '' at line 1 in [/opt/lampp/htdocs/trportal/vendor/cakephp/cakephp/src/Database/Statement/MysqlStatement.php, line 38] 2020-02-08 02:55:41 Error: [PDOException] SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '' at line 1 in |