# |
Mar 28th 2019, 10:09 |
joopm |
have a great day to all community member |
# |
Mar 28th 2019, 09:41 |
maymeow |
even symfony console (used in cakephp) can call another command so why not cake? https://symfony.com/doc/current/console/calling_commands.html |
# |
Mar 28th 2019, 09:32 |
maymeow |
yes and for windows i need bat etc etc... or perhaps i can make exe file |
# |
Mar 28th 2019, 09:29 |
neon1024 |
Create `runstuff.sh` |
# |
Mar 28th 2019, 09:27 |
maymeow |
want to make command which run all migrations (for plugin to) and other needed functions and i dont want to run each command separatelly |
# |
Mar 28th 2019, 09:24 |
dereuromark |
thats usually a code smell, you usually want to properly service class this, e.g. some Lib, or into Tasks if you want to - and just make it for reuse this way from different endpoints. |
# |
Mar 28th 2019, 09:22 |
maymeow |
@dereuromark in old she'll you can run other shell commands with dispatchShell |
# |
Mar 28th 2019, 09:20 |
dereuromark |
maymeow: what do yo mean? |
# |
Mar 28th 2019, 09:19 |
anupgkale |
@neon1024 i figured it out. My cakephp 3.6 didnot have curl adapter. I updated cakephp to latest got curl adapter and now the world is full of sunshine and rainbows :slightly_smiling_face: |
# |
Mar 28th 2019, 09:16 |
maymeow |
Can I run migrations or other commands from command ? If yes how? |
# |
Mar 28th 2019, 09:07 |
neon1024 |
You can use something like Guzzle instead |
# |
Mar 28th 2019, 09:02 |
neon1024 |
@anupgkale I’ve had issues with the Cake http client in the past too |
# |
Mar 28th 2019, 09:01 |
neon1024 |
Morning all :wave: |
# |
Mar 28th 2019, 08:49 |
anupgkale |
Now to check if I can change the adapter from fopen to curl |
# |
Mar 28th 2019, 08:48 |
anupgkale |
so I am getting the 302 found status in the client but not the location that I am getting in the curl headers and for curl to finish the transaction |
# |
Mar 28th 2019, 08:47 |
anupgkale |
damn |
# |
Mar 28th 2019, 08:46 |
anupgkale |
Cakephp client uses Fopen and not curl |
# |
Mar 28th 2019, 08:28 |
anupgkale |
I am not sure how to debug this anymore. Can someone please help me? |
# |
Mar 28th 2019, 08:27 |
anupgkale |
I have run a small PHP script that uses cul follow redirect to download a file. but when I use /Cake/Http/Client. the request stops at the very penultimate redirect and does not download the file |
# |
Mar 28th 2019, 08:25 |
anupgkale |
Hi all, I am new here and I apologise if i am breaking any rules |
# |
Mar 28th 2019, 01:10 |
dereuromark |
fsf: you dont |
# |
Mar 28th 2019, 00:56 |
challgren |
Ahh it was with CakeDC/users permissions |
# |
Mar 28th 2019, 00:41 |
fsf |
how to create multiple login using multiple users tables |
# |
Mar 28th 2019, 00:40 |
fsf |
how to create multiple login using multiple users tables |
# |
Mar 27th 2019, 21:03 |
rogerpro |
I manipulated a child and added another with newEntity() instead |
# |
Mar 27th 2019, 20:59 |
ricksaccous |
well, you know to just explicitly set them as dirty now, after patchEntity I guess |
# |
Mar 27th 2019, 20:58 |
rogerpro |
Less than the time I spent researching :rolling_on_the_floor_laughing: |
# |
Mar 27th 2019, 20:57 |
rogerpro |
How many microseconds would it take to the framework to do a diff of the previous and current entities? |
# |
Mar 27th 2019, 20:57 |
ricksaccous |
i seee |
# |
Mar 27th 2019, 20:57 |
rogerpro |
I want to save the hasMany entities that has changed (actually all of them in the entity passed to save() have changed). |
# |
Mar 27th 2019, 20:56 |
rogerpro |
Why does `save()` not check diff in association entities? It’s for efficiency I guess, but I’m not sure it’s the best choice. |
# |
Mar 27th 2019, 20:55 |
ricksaccous |
lol |
# |
Mar 27th 2019, 20:55 |
ricksaccous |
is it a belongsToMany and you pretty much want it to be dirty on every save and save strategy is replace? |
# |
Mar 27th 2019, 20:54 |
rogerpro |
I’m afraid it’s a feature, not a bug ,:) Anyhow, I guess I’m not the only one to forgot the use of `dirty()` method. An ORM should be as easy and magical as posible (whilst not inventing stuff). |
# |
Mar 27th 2019, 20:53 |
bencayk |
I am new to cakephp;cakephp is installed,I want to add a test in create or modify; checking Date Of Birth (greater than 65 years old) |
# |
Mar 27th 2019, 20:51 |
cnizzardini |
You should submit a bug report |
# |
Mar 27th 2019, 20:45 |
rogerpro |
^ I think we should do something for Cake 4 :thinking_face: |
# |
Mar 27th 2019, 20:44 |
rogerpro |
I found a case where the ORM `save()` returns an entity with associations and does actually nothing :face_with_rolling_eyes: All changes were in associations and the solution is to set them `dirty`. But the fact that `save()` returns something and does nothing is confusing IMHO. |
# |
Mar 27th 2019, 20:25 |
challgren |
Could also be that the hashed password is salted with something |
# |
Mar 27th 2019, 20:24 |
andy-ttg |
thanks guys |
# |
Mar 27th 2019, 20:24 |
andy-ttg |
cheers! I'll give it a go |