# |
Dec 30th 2018, 12:44 |
challgren |
Nevermind on the “You ar array should just be an array and not have the key ar….” |
# |
Dec 30th 2018, 12:43 |
kitcat711 |
nm? |
# |
Dec 30th 2018, 12:43 |
kitcat711 |
@challgren: reading it, so far was trying with function($q) and subqueries, but nothing worked so I am ready to investigate the leftjoinWith |
# |
Dec 30th 2018, 12:43 |
challgren |
actually nm |
# |
Dec 30th 2018, 12:40 |
challgren |
You ar array should just be an array and not have the key ar. You also need `'alias' => 'ar'` |
# |
Dec 30th 2018, 12:37 |
challgren |
@kitcat711 checkout https://book.cakephp.org/3.0/en/orm/query-builder.html#using-leftjoinwith |
# |
Dec 30th 2018, 12:31 |
kitcat711 |
Hello there, Trying, for hours, to implement a “complex” SQL Left join using CakePHP 3.6.13, please can you drive me and glance this : https://gist.github.com/Kitcat711/6b440733f5566b243c946bdf047a99fa . Thanks |
# |
Dec 30th 2018, 12:09 |
challgren |
@birdy247 this looks interesting https://book.cakephp.org/3.0/en/console-and-shells.html#index-0 |
# |
Dec 30th 2018, 12:08 |
k4t |
@admad u there maybe? |
# |
Dec 30th 2018, 12:06 |
challgren |
Yep I know, Ive been trying to model my stuff after the migrations plugin |
# |
Dec 30th 2018, 12:06 |
birdy247 |
So I am keen to move to commands |
# |
Dec 30th 2018, 12:05 |
birdy247 |
@challgren but this also means shells will likley not benefit from any new features :slightly_smiling_face: |
# |
Dec 30th 2018, 12:04 |
challgren |
I know its somethign Ive been struggling with |
# |
Dec 30th 2018, 12:01 |
challgren |
@birdy247 I dont think so yet, but Shells wont be removed until 5.x |
# |
Dec 30th 2018, 11:56 |
birdy247 |
Is there a way to neatly package them up, or should I make a AdminCommand which then provides options which can call other commands |
# |
Dec 30th 2018, 11:55 |
birdy247 |
with commands, I find myself creating a new one for each task |
# |
Dec 30th 2018, 11:55 |
birdy247 |
etc.. |
# |
Dec 30th 2018, 11:55 |
birdy247 |
bin/cake admin restore |
# |
Dec 30th 2018, 11:55 |
birdy247 |
i.e. bin/cake admin backup |
# |
Dec 30th 2018, 11:55 |
birdy247 |
and then have various methods that lived inside this |
# |
Dec 30th 2018, 11:54 |
birdy247 |
One thing I used to do in a shell was create a shell like AdminShell |
# |
Dec 30th 2018, 11:54 |
birdy247 |
I am switching from shells to commands |
# |
Dec 30th 2018, 11:06 |
daviz_xtr |
Hi all. Can someone help me with this case of entities? adverts hasMany advertsagencies with agency_id adverts hasMany advertsagencies with advert_id I get results but I can not save in adverts_agencies |
# |
Dec 30th 2018, 09:43 |
birdy247 |
@admad I made those changes :slightly_smiling_face: |
# |
Dec 30th 2018, 09:32 |
challgren |
Morning birdy! |
# |
Dec 30th 2018, 09:14 |
birdy247 |
Morning |
# |
Dec 30th 2018, 06:09 |
isvyas |
Hello Guys, Good morning I'm looking for the contributor for this project, if anyone interested. https://github.com/ishanvyas22/cakephpvue-spa |
# |
Dec 30th 2018, 06:01 |
nayakvradhit |
Hi can you please tell me what default files in cakephp 2.10 is unchanged for migration to php7 ?? |
# |
Dec 29th 2018, 20:03 |
k4t |
from CRUD plugin |
# |
Dec 29th 2018, 20:03 |
k4t |
like JsonAPI listener |
# |
Dec 29th 2018, 20:03 |
k4t |
and I am also interest in standardized JSON responses |
# |
Dec 29th 2018, 20:03 |
challgren |
Understandable |
# |
Dec 29th 2018, 20:03 |
k4t |
but this time I want try something new... theoretically better... less code to write etc |
# |
Dec 29th 2018, 20:02 |
k4t |
yeah, I was also thinking about something similar |
# |
Dec 29th 2018, 20:00 |
challgren |
Thats how I handle json in my app. I dont rely on any plugin |
# |
Dec 29th 2018, 19:59 |
challgren |
https://audit-app.gitlab.io/website/src/Controller/EnergyAuditMeasuresController.php.html#26 |
# |
Dec 29th 2018, 19:58 |
challgren |
standby hospital is calling me |
# |
Dec 29th 2018, 19:58 |
k4t |
generally idea with .format is awesome |
# |
Dec 29th 2018, 19:58 |
k4t |
of course he can always add .json at the end of urls but not everybody can noticed that at the beginning etc |
# |
Dec 29th 2018, 19:57 |
k4t |
yup |
# |
Dec 29th 2018, 19:57 |
challgren |
Yeah cause if the user is manually typing the url directly its not really an API at that point |