Log message #4171000

# At Username Text
# Oct 9th, 09:58 johnwayne can anybody help me with this problem ``` object(Cake\Http\Client\Response) { [protected] code => (int) 426 [protected] reasonPhrase => 'Upgrade Required' [protected] _xml => null [protected] _json => null [protected] _exposedProperties => [ 'cookies' => '_cookies', 'body' => '_getBody', 'code' => 'code', 'json' => '_getJson', 'xml' => '_getXml', 'headers' => '_getHeaders' ] [protected] _cookies => [] [protected] headers
# Oct 9th, 09:57 rudy1976s because actually it does not retrieve nothing
# Oct 9th, 09:56 rudy1976s is it correct to use this on a query contain ? I am using the following to find translation on associated : 'Seo' => function($q) { return $q->find('translations'); },
# Oct 9th, 09:56 rudy1976s I am working to try to retrieve translations on associations with contains
# Oct 9th, 09:55 rudy1976s good morning to all !!!!
# Oct 9th, 09:46 rrd564 @neon1024 uksort saved my day. Thanks :slightly_smiling_face:
# Oct 9th, 09:39 neon1024 I mean, if you’d put that into Google instead of Slack, you’d be there by now!
# Oct 9th, 09:39 neon1024 http://php.net/manual/en/language.exceptions.php
# Oct 9th, 09:38 neon1024 Use `try`
# Oct 9th, 09:29 blancessanchez30 how to catch an exception?
# Oct 9th, 09:24 rrd564 thanks
# Oct 9th, 09:24 rrd564 hm, even better
# Oct 9th, 09:23 neon1024 Then I could preserve the content and deal with the sorting just by index
# Oct 9th, 09:23 rrd564 Thanks for the hint, let's see where I iwll ended up :slightly_smiling_face:
# Oct 9th, 09:23 neon1024 I would probably use `usort()` and write my own function
# Oct 9th, 09:23 rrd564 I know, but it is not a problm for me at that point
# Oct 9th, 09:22 neon1024 If you are using an array of entities though they will not become entities again
# Oct 9th, 09:21 rrd564 but actually converting into an array, use ksort and converting back to a collection is an option
# Oct 9th, 09:20 neon1024 Ahok
# Oct 9th, 09:20 rrd564 ksort gives me: ksort() expects parameter 1 to be array, object given
# Oct 9th, 09:20 neon1024 Although, I’m not entirely sure on that you’d have to try it :slightly_smiling_face:
# Oct 9th, 09:20 neon1024 I believe, as it implements an iterator
# Oct 9th, 09:19 neon1024 https://github.com/cakephp/cakephp/blob/master/src/Collection/Collection.php#L27
# Oct 9th, 09:19 neon1024 No
# Oct 9th, 09:18 rrd564 But than I have to convert my collection to an array, right?
# Oct 9th, 09:18 neon1024 Collection implements ArrayInterface iirc
# Oct 9th, 09:18 neon1024 Use ksort or usort then
# Oct 9th, 09:18 rrd564 And I want to keep the indexes, just reordering them
# Oct 9th, 09:17 rrd564 @neon1024 That is not good for me, as I have several items in every group
# Oct 9th, 09:15 neon1024 `Collection::indexBy()`
# Oct 9th, 09:06 rrd564 Is there a way to sort a collection by the index of its items? Something like ksort for arrays? The collection is after a groupBy and I want to sort after the grouping
# Oct 9th, 09:01 martin update of my problem yesterday, it was just a fileserver that was not responding 100% :P
# Oct 9th, 09:01 martin Morning :)
# Oct 9th, 08:56 neon1024 Morning all :wave:
# Oct 9th, 08:52 dereuromark remove the specific file
# Oct 9th, 08:49 blancessanchez30 aside from $this->redirect('/'), what are the other redirection
# Oct 9th, 08:44 lubos @dereuromark what is the best way to clear just TinyAuth cache?
# Oct 9th, 07:26 xenogew If i want to adopt Twitter bootstrap as css framework. What should I do? What I googled are downloading->copying method, a lot of plugin and forks. I prefer the way using `composer require` method, can anyone guide me how to accomplish that?
# Oct 9th, 07:17 rightscoreanalysis it's a bug because I call this on another collection with the same structure
# Oct 9th, 07:16 rightscoreanalysis does anyone know what this means: Hash::combine() needs an equal number of keys + values.
# Oct 9th, 05:13 zomb leaving it as 'alphanumeric' for now