# |
Dec 7th 2019, 23:41 |
niel45 |
I'm trying to use the instructions here https://book.cakephp.org/4/en/appendices/4-0-upgrade-guide.html but they don't work for me |
# |
Dec 7th 2019, 23:39 |
niel45 |
can anyone help with the 4.x upgrade tool? |
# |
Dec 7th 2019, 23:38 |
corey.taylor.fl |
Update TwigView to twig 3.0? https://github.com/WyriHaximus/TwigView/issues/219 |
# |
Dec 7th 2019, 20:26 |
luizcmarin |
the twig/twig is updated 3.0, but in cake is 2.12.2..... I am suggesting his update. |
# |
Dec 7th 2019, 17:59 |
martin |
oh it is standalone I think? but can I also use custom oauth? |
# |
Dec 7th 2019, 17:53 |
martin |
yes I did found that one, but that works with the old auth component? |
# |
Dec 7th 2019, 17:50 |
admad |
you can use my social-auth plugin :slightly_smiling_face: |
# |
Dec 7th 2019, 17:49 |
admad |
oauth is technically authorzation |
# |
Dec 7th 2019, 17:48 |
martin |
hmm cakephp authenticain middleware does not support login via oauth (like facebook etc) because it is not a authentication method? hmm :S |
# |
Dec 7th 2019, 14:50 |
dereuromark |
usually |
# |
Dec 7th 2019, 14:50 |
dereuromark |
in 4.x /templates/ |
# |
Dec 7th 2019, 14:48 |
luizcmarin |
To customize bake, the manual says: "Create a new directory / src / Template / Bake /." but the 'template' directory has been moved out of 'src'. Is the correct then '/ Template / Bake /'? |
# |
Dec 7th 2019, 13:30 |
luizcmarin |
Hi, I am reviewing the manual in Portuguese and sent two corrections. I can't see where they stay after we send. Could you just let me know how to see this? is corrections for https://book.cakephp.org/4/pt/index.html and https://book.cakephp.org/4/pt/intro.html |
# |
Dec 7th 2019, 13:17 |
damiano |
before inserting updated records |
# |
Dec 7th 2019, 13:17 |
damiano |
basically i have to remove all records that have property_id = 10 |
# |
Dec 7th 2019, 13:17 |
damiano |
is it possible to delete all record that has a specific field before inserting? |
# |
Dec 7th 2019, 13:16 |
damiano |
hello |
# |
Dec 7th 2019, 07:00 |
admad |
@neon1024 for your testing pleasure :slightly_smiling_face: https://github.com/UseMuffin/Webservice/tree/cake-4.x |
# |
Dec 7th 2019, 05:11 |
GigaFlow |
feature* |
# |
Dec 7th 2019, 05:11 |
GigaFlow |
How to use remember_me featre in new Authentication plugin? |
# |
Dec 7th 2019, 03:59 |
turkles |
What is the easiest way to do a LEFT OUTER join? ie. I want all entries where a particular association is empty |
# |
Dec 6th 2019, 21:13 |
challgren |
https://book.cakephp.org/3/en/orm/associations.html#hasmany-associations |
# |
Dec 6th 2019, 21:12 |
challgren |
and bindingKey |
# |
Dec 6th 2019, 21:12 |
challgren |
foreignKey parameter for your relationship |
# |
Dec 6th 2019, 21:10 |
dogmatic69 |
for example joining by a username if that was a field in both tables |
# |
Dec 6th 2019, 21:10 |
dogmatic69 |
Is there a way to define a relation between two tables not using primaryKeys |
# |
Dec 6th 2019, 21:07 |
dogmatic69 |
o/ |
# |
Dec 6th 2019, 16:53 |
neon1024 |
I’ll look at it again on Monday, and perhaps I’ll have a Eureka! moment |
# |
Dec 6th 2019, 16:53 |
neon1024 |
Thanks very much for the help though @ndm |
# |
Dec 6th 2019, 16:53 |
neon1024 |
Oh well |
# |
Dec 6th 2019, 16:52 |
ndm |
`errors()` genereally works fine, it's what the patching mechanism uses too. |
# |
Dec 6th 2019, 16:52 |
neon1024 |
I reckon my input is wrong somehow |
# |
Dec 6th 2019, 16:52 |
neon1024 |
Especially as `processRules` has the ValidationSet as `$rules` |
# |
Dec 6th 2019, 16:51 |
neon1024 |
Knowing Cake though `@mixed $field` ;P |
# |
Dec 6th 2019, 16:51 |
neon1024 |
No, I just wonder if my input is incorrect, was more what I was thinking :slightly_smiling_face: |
# |
Dec 6th 2019, 16:50 |
ndm |
Well, the naming is a bit off, but that's really not causing any problems :slightly_smiling_face: |
# |
Dec 6th 2019, 16:50 |
neon1024 |
As it looks just for allowEmpty which is deprecated |
# |
Dec 6th 2019, 16:50 |
neon1024 |
You know what, I don’t think `errors()` works with the `allowEmptyString` |
# |
Dec 6th 2019, 16:47 |
neon1024 |
Which would make `$field` a ValidationSet instance, which doesn’t seem right for a variable called $field |
# |
Dec 6th 2019, 16:47 |
neon1024 |
Which is odd as in `errors` the foreach is for ` ```foreach ($this->_fields as $name => $field) {``` |
# |
Dec 6th 2019, 16:47 |
neon1024 |
Using reflection to investigate `_fields` in the Validator, I can see it’s an array of `fieldName => validationSet` |