Log message #4104824

# At Username Text
# Dec 19th 2017, 14:59 aro you mentioned using ssh tunnel
# Dec 19th 2017, 14:58 joop or you can find in the irc log file,i use a lot to find infos
# Dec 19th 2017, 14:58 aro it didnt really make sense
# Dec 19th 2017, 14:58 aro i looked at it
# Dec 19th 2017, 14:58 hmic aro, i answered in detail before. just scroll up!
# Dec 19th 2017, 14:56 aro does cake support ssl db connections?
# Dec 19th 2017, 14:55 joop i write in a pastebin content https://pastebin.com/efihHFRB
# Dec 19th 2017, 14:50 joop sorry
# Dec 19th 2017, 14:50 joop mmfbmfb
# Dec 19th 2017, 14:50 joop okey i got it
# Dec 19th 2017, 14:49 slackebot3 !ruleone
# Dec 19th 2017, 14:49 slackebot3 Command sent from Slack by neon1024:
# Dec 19th 2017, 14:49 joop now i can acces ModelA.field value in the clusre
# Dec 19th 2017, 14:48 joop if i am in ModelA and i call the closure for ModelA.field how can i pass a ModelB.field(which is associated with ModelA) value
# Dec 19th 2017, 14:47 joop the closure is written for costum validation rule
# Dec 19th 2017, 14:46 joop i am still stuck in pit with closure-s
# Dec 19th 2017, 14:42 jotpe thanks @hmic, but this isn't the problem... o.O
# Dec 19th 2017, 14:37 dereuromark thx
# Dec 19th 2017, 14:37 dereuromark I bet it is just a \\ => / issue or mapping of class name to plugin name and back etc
# Dec 19th 2017, 14:35 neon1024 @dereuromark I’ll take a look at the Muffin/Slug issue now and see if I can get something sorted for a PR :slightly_smiling_face:
# Dec 19th 2017, 14:31 hmic jotpe: you can set a tracking branch to your local one, maybe thats different
# Dec 19th 2017, 14:27 jotpe hey. a non cake related question: I have a remote branch develop and a local branch develop. For some reasons the remote branch diverges from the local. But if i do `git pull` or `git fetch --all` and `git reset --hard` the remote changes are not included. Any idea?
# Dec 19th 2017, 14:26 helloworld_ thanks, paul_83uk. Ill try it out.
# Dec 19th 2017, 14:21 hmic paul_83uk: maybe. but you probably better pass the value to where you need it in the first place
# Dec 19th 2017, 14:20 paul_83uk @hmic is it possible to get the value of the other param out of the Query first? one where is a datetime field that I want to remove the other is a string value but I don't know the value so need to get that value to be included in the new query
# Dec 19th 2017, 14:18 paul_83uk yeah if that's the correct assignment then out of a foreach loop if you need the value you simply call $showrooms['savoirOwned'][29] // this would give you "row6"
# Dec 19th 2017, 14:18 hmic paul_83uk: no. you need to build up a new query, once it's executed.
# Dec 19th 2017, 14:15 helloworld_ like an associative array?
# Dec 19th 2017, 14:15 helloworld_ $showrooms = array( "savoirOwned" => array( 1 => "row1", 3 => "row2", 4 => "row3", 24 => "row4", 27 => "row5", 29 => "row6", 34 => "row7", 36 => "row8", 37 => "row9" ) );
# Dec 19th 2017, 14:14 helloworld_ would i be able to
# Dec 19th 2017, 14:14 helloworld_ so paul_83uk,
# Dec 19th 2017, 14:07 paul_83uk $showrooms = array( "savoirOwned" => array( 1 => "row1", 2 => "row2", 3 => "row3", 4 => "row4", 5 => "row5", 6 => "row6", 7 => "row7", 8 => "row8", 9 => "row9" ) ); foreach( $showrooms['savoirOwned'] as $index => $row) { echo $index . ' is ' . $row; }
# Dec 19th 2017, 14:03 paul_83uk @helloworld if your array is simply "row1", "row2", "row3" then you could either add a "row0" or +1 to the index each time you need to echo it out or -1 when you need to reference it. if the numbers jump then you need to set the key value for the array in the first place.
# Dec 19th 2017, 14:01 paul_83uk I have a quick question about Cake 3 Query. I have a Query with 2 where clauses. if the ->count() == 0 I want to remove one of the where clauses and run the query again. Is this possible to remove a where clause once set?
# Dec 19th 2017, 14:01 helloworld_ joop, it's still just iterating 0, 1, 2, 3
# Dec 19th 2017, 13:58 paul_83uk I'm guessing your not creating the array? if you are you could simply do [1 => 1, 3 => 3, 24 => 24....]
# Dec 19th 2017, 13:58 joop $index will be your index and showroms will be your value
# Dec 19th 2017, 13:57 joop use $index=>showrooms insted of $showroms[$i] => $val
# Dec 19th 2017, 13:55 helloworld_ basically I want rows to correspond to the showroms number
# Dec 19th 2017, 13:54 helloworld_ if i have $index in the loop
# Dec 19th 2017, 13:54 helloworld_ and it's giving 0, 1 ,2 3