# |
Mar 12th 2018, 20:51 |
savant |
which is the default |
# |
Mar 12th 2018, 20:51 |
savant |
that will then mean you use a `join` strategy of `LEFT` joinType |
# |
Mar 12th 2018, 20:51 |
savant |
do not change to select |
# |
Mar 12th 2018, 20:51 |
savant |
leave the strategy as is |
# |
Mar 12th 2018, 20:51 |
savant |
you can sort by a LEFT column |
# |
Mar 12th 2018, 20:50 |
xinobi |
savant I can't find a proper solution, I've opened this https://discourse.cakephp.org/t/sort-from-view-with-when-using-hasone-associations/3976 a "while" ago I stoped looking for a solution meanwhile but now I need to fix this |
# |
Mar 12th 2018, 20:46 |
xinobi |
savant I'm sorry but I'm really frustrated here |
# |
Mar 12th 2018, 20:45 |
xinobi |
savant by default joinType is LEFT |
# |
Mar 12th 2018, 20:45 |
savant |
:slightly_smiling_face: |
# |
Mar 12th 2018, 20:45 |
savant |
also, there isnt any need for a bunch of !?!!?1 |
# |
Mar 12th 2018, 20:45 |
savant |
xinobi: you can change the `joinType` to `LEFT` if you’d like |
# |
Mar 12th 2018, 20:44 |
xinobi |
I'm sorry to get back to this but the book says "You can use INNER if your hasOne association is always present." what if it's not an obligatory column?!? has I see it I got only one option I've to use 'select' as strategy but I can't sort data... https://book.cakephp.org/3.0/en/orm/associations.html#hasone-associations |
# |
Mar 12th 2018, 20:01 |
xinobi |
when sorting hasOne associations within pagination I don't see all the registries, but if I add setStrategy('select') I get an all the registries however I'm allowed to sort without a MYSQL Error: SQLSTATE[42S22]: Column not found: 1054 Unknown column... |
# |
Mar 12th 2018, 19:22 |
bakro.istvan |
I will get back at you if I find anything |
# |
Mar 12th 2018, 19:22 |
bakro.istvan |
Thanky anyway |
# |
Mar 12th 2018, 19:22 |
bakro.istvan |
ok |
# |
Mar 12th 2018, 19:21 |
dereuromark |
Find out why. It works for me. |
# |
Mar 12th 2018, 19:14 |
bakro.istvan |
I think the behavior creates the relation between my People entity and the Tag. But nevertheless it does not save it. |
# |
Mar 12th 2018, 19:12 |
bakro.istvan |
``` $person = $this->People->newEntity(); if ($this->request->is('post')) { $person = $this->People->patchEntity($person, $this->request->getData()); if ($this->People->save($person)) { ``` does not gets saved. |
# |
Mar 12th 2018, 19:12 |
bakro.istvan |
I think your plugin does gets the data and starts to process it. ``` |
# |
Mar 12th 2018, 19:12 |
birdy247 |
@admad @savant on it :) |
# |
Mar 12th 2018, 19:10 |
bakro.istvan |
at the moment there are only one tag record, which I created manually. |
# |
Mar 12th 2018, 19:10 |
bakro.istvan |
I dont think it is cache issue, because it does query the databse. |
# |
Mar 12th 2018, 19:09 |
bakro.istvan |
I cleared the cache, but I get the same result. |
# |
Mar 12th 2018, 18:15 |
savant |
if you buy a ticket to cakefest, i’ll tell you the _exact_ release date |
# |
Mar 12th 2018, 18:15 |
admad |
We are holding it off until you provide me the review you promised me |
# |
Mar 12th 2018, 18:15 |
savant |
when its done |
# |
Mar 12th 2018, 18:14 |
birdy247 |
out of interest, is there are approx timescale for cake 4 |
# |
Mar 12th 2018, 18:14 |
birdy247 |
awesome |
# |
Mar 12th 2018, 18:13 |
lorenzo |
the changes are on 3.6-beta already |
# |
Mar 12th 2018, 18:13 |
lorenzo |
mostly improving the performance of the ORM |
# |
Mar 12th 2018, 18:12 |
birdy247 |
cake 4? |
# |
Mar 12th 2018, 18:12 |
birdy247 |
What magic has @lorenzo been working on lately |
# |
Mar 12th 2018, 18:11 |
lorenzo |
haha |
# |
Mar 12th 2018, 18:11 |
savant |
^ actual gif of @lorenzo |
# |
Mar 12th 2018, 18:11 |
slackebot |
<savant> |
# |
Mar 12th 2018, 18:11 |
steinkel |
CakeBot needs to level up |
# |
Mar 12th 2018, 18:10 |
slackebot |
~magic |
# |
Mar 12th 2018, 18:10 |
slackebot |
Command sent from Slack by savant: |
# |
Mar 12th 2018, 18:10 |
birdy247 |
I just dont know how it was working before |
# |
Mar 12th 2018, 18:09 |
savant |
sounds like you just didnt update the plugin |