Log message #4180034

# At Username Text
# Mar 17th 2019, 10:51 birdy247 thats what we want
# Mar 17th 2019, 10:51 birdy247 and orderDesc
# Mar 17th 2019, 10:51 edgaras.jan after orderAsc add group()
# Mar 17th 2019, 10:51 birdy247 so add a group in there?
# Mar 17th 2019, 10:50 slackebot2 <birdy247>
# Mar 17th 2019, 10:50 slackebot2 <birdy247>
# Mar 17th 2019, 10:49 edgaras.jan group('hasoneTable.primary.key')
# Mar 17th 2019, 10:48 birdy247 @edgaras.jan how do you mean groupByKey
# Mar 17th 2019, 10:47 edgaras.jan Adding gruop by key should return 1 result for each key
# Mar 17th 2019, 10:46 birdy247 ok tahnks
# Mar 17th 2019, 10:45 savant im headed to bed for now, but hopefulluy someone else can help
# Mar 17th 2019, 10:45 savant i wonder if we have a test for this
# Mar 17th 2019, 10:45 savant ooo that might be it
# Mar 17th 2019, 10:44 edgaras.jan https://github.com/cakephp/cakephp/blob/master/src/ORM/Association/Loader/SelectLoader.php#L474 I think here last latter duplicate result with same key overwrites former
# Mar 17th 2019, 10:44 birdy247 I am using the select strategy
# Mar 17th 2019, 10:43 savant please show the queries being produced
# Mar 17th 2019, 10:43 savant I wonder if its just unordered
# Mar 17th 2019, 10:43 savant thats for a first() call
# Mar 17th 2019, 10:43 savant well maybe it’ll call limit 1
# Mar 17th 2019, 10:43 savant whats the query it produces?
# Mar 17th 2019, 10:43 savant https://github.com/cakephp/cakephp/blob/master/src/Datasource/QueryTrait.php#L465
# Mar 17th 2019, 10:43 savant seems it’ll call limit(1) on it
# Mar 17th 2019, 10:41 birdy247 I amde a unit test to prove it
# Mar 17th 2019, 10:41 birdy247 It is always the last
# Mar 17th 2019, 10:41 savant I’ve never done this though
# Mar 17th 2019, 10:41 savant probably the first one
# Mar 17th 2019, 10:40 birdy247 the hasOne scenario I wrote above
# Mar 17th 2019, 10:40 savant wat
# Mar 17th 2019, 10:37 birdy247 @savant any ideas?
# Mar 17th 2019, 10:31 birdy247 @lorenzo any ideas?
# Mar 17th 2019, 10:23 birdy247 Does cake always take the last entity in a hasOne if there are many?
# Mar 17th 2019, 10:23 birdy247 the hasOne would then return 1
# Mar 17th 2019, 10:23 birdy247 3,2,1
# Mar 17th 2019, 10:22 birdy247 lets say the finder ordersDesc
# Mar 17th 2019, 10:22 birdy247 I noticed something, and I am not sure if this is expected
# Mar 17th 2019, 10:22 birdy247 I am using the "select" strategy
# Mar 17th 2019, 10:22 birdy247 I have a hasOne association
# Mar 17th 2019, 10:22 birdy247 Hi
# Mar 17th 2019, 07:41 ssalvatori but if I enabled the boostrap cakedc will overwrite my configuration even if I place it after the addPLugin on the application.php file
# Mar 17th 2019, 07:40 ssalvatori I disabled the boostrap and copied https://github.com/CakeDC/users/blob/master/config/bootstrap.php#L25-L49 but then cake is not able to find the finder Auth
# Mar 17th 2019, 07:39 ssalvatori Hi, I'm having troubles with like https://github.com/CakeDC/users/issues/753