# |
Jul 10th 2018, 12:40 |
asdfgh |
jpsbeir https://nopaste.xyz/?f83c40860a3572c6#JsE/GtnDP36gSLIPei3GT+mbkbx9/OYb8bHvluS47o4= |
# |
Jul 10th 2018, 12:40 |
josbeir |
its also not compatible with 3.6 |
# |
Jul 10th 2018, 12:40 |
josbeir |
1.8* is a bad rls |
# |
Jul 10th 2018, 12:39 |
josbeir |
it must be 1.7 |
# |
Jul 10th 2018, 12:39 |
josbeir |
wait |
# |
Jul 10th 2018, 12:39 |
josbeir |
oh no |
# |
Jul 10th 2018, 12:39 |
asdfgh |
ok |
# |
Jul 10th 2018, 12:39 |
josbeir |
didn't see :slightly_smiling_face: |
# |
Jul 10th 2018, 12:39 |
josbeir |
ah 1.8.1 is also good |
# |
Jul 10th 2018, 12:39 |
asdfgh |
ok |
# |
Jul 10th 2018, 12:39 |
asdfgh |
1.7 |
# |
Jul 10th 2018, 12:39 |
asdfgh |
ok |
# |
Jul 10th 2018, 12:39 |
asdfgh |
1.8.1 josbeir ? |
# |
Jul 10th 2018, 12:38 |
josbeir |
"cakephp/migrations": "dev-master" change that to 1.7 |
# |
Jul 10th 2018, 12:38 |
mohitprakashsharma555 |
hmmm ji bol |
# |
Jul 10th 2018, 12:38 |
asdfgh |
yes |
# |
Jul 10th 2018, 12:38 |
asdfgh |
oh pardon |
# |
Jul 10th 2018, 12:38 |
josbeir |
in your composer.json |
# |
Jul 10th 2018, 12:38 |
asdfgh |
josbeir where exactly? |
# |
Jul 10th 2018, 12:38 |
josbeir |
2 is only compatible with 3.6 |
# |
Jul 10th 2018, 12:38 |
josbeir |
use version 1 instead of 2 |
# |
Jul 10th 2018, 12:37 |
josbeir |
lock that to a version compatible with 3.5 |
# |
Jul 10th 2018, 12:37 |
josbeir |
migrations is using dev-master |
# |
Jul 10th 2018, 12:37 |
asdfgh |
josbeir it works if i install cakephp 3.6 -_- |
# |
Jul 10th 2018, 12:36 |
asdfgh |
i removed .lock and /vendor too |
# |
Jul 10th 2018, 12:36 |
asdfgh |
same thing.... |
# |
Jul 10th 2018, 12:36 |
asdfgh |
josbeir https://nopaste.xyz/?84742194860efb56#0ugBubdr2haWYhAs1McMzQCHWQr5bUDS+VkLrIF4f+o= |
# |
Jul 10th 2018, 12:36 |
slackebot4 |
->where( [ ... ], ] ) ->group('..') ->order(['BillingDocuments.billing_period' => 'DESC', 'BillingDocuments.id' => 'DESC']); ``` And reference of sort is `described in documentation `https://book.cakephp.org/3.0/en/orm/query-builder.html#sorting-contained-associations` |
# |
Jul 10th 2018, 12:36 |
johnwayne |
I am trying to make sort on `has many` table, but cakephp doesnt do anything here is the code ``` $query = TableRegistry::get('BillingDocuments') ->find() ->contain( [ ... 'BillingDocumentDeliveryOptions.DeliveryOptions' => [ 'sort' => [ 'BillingDocumentDeliveryOptions.delivery_date' => 'DESC' ] ], ] ) |
# |
Jul 10th 2018, 12:35 |
josbeir |
(be sure to make a backup of your lock file) |
# |
Jul 10th 2018, 12:35 |
asdfgh |
ok |
# |
Jul 10th 2018, 12:34 |
josbeir |
try to remove your lockfile and do composer update |
# |
Jul 10th 2018, 12:34 |
josbeir |
asdfgh your issue is a bit unclear, as this has probably nothing to do with cakephp itself |
# |
Jul 10th 2018, 12:33 |
asdfgh |
anyone could help me installing cakephp ? |
# |
Jul 10th 2018, 12:33 |
brettl |
i agree |
# |
Jul 10th 2018, 12:33 |
brettl |
will try again and make sure |
# |
Jul 10th 2018, 12:33 |
josbeir |
poeple should be leaning more to using named routing anyway... |
# |
Jul 10th 2018, 12:33 |
josbeir |
it should work tho :slightly_smiling_face: |
# |
Jul 10th 2018, 12:33 |
brettl |
thanks peeps |
# |
Jul 10th 2018, 12:33 |
brettl |
tried that did not work , but used just the string as parameter for now, which works |
# |
Jul 10th 2018, 12:31 |
josbeir |
<?= $this->Html->link(__('Cancel'), ['controller' => 'Home','action' => 'home', 'prefix' => false ], ['class' => 'btn m-btn--square btn-secondary']) ?> |