Log message #4104808

# At Username Text
# 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
# Dec 19th 2017, 13:54 helloworld_ i used as $index => $showroms
# Dec 19th 2017, 13:49 helloworld_ with savoirOwned array inside.
# Dec 19th 2017, 13:49 helloworld_ $showrooms = array( "savoirOwned" => array( "row1", "row2", "row3", "row4", "row5", "row6", "row7", "row8", "row9" ) );
# Dec 19th 2017, 13:49 helloworld_ showrooms is an array
# Dec 19th 2017, 13:45 joop and if $showrooms is an entity you should use $showroom->savoirOwned
# Dec 19th 2017, 13:44 joop as $index=>showrooms?
# Dec 19th 2017, 13:44 joop did you try
# Dec 19th 2017, 13:44 helloworld_ it would be the value of showroms
# Dec 19th 2017, 13:43 helloworld_ so that instead of the key being 0, 1, 2, 3
# Dec 19th 2017, 13:43 helloworld_ $showroms = [1, 3, 4, 24, 27, 29, 34, 36, 37]; foreach($showrooms["savoirOwned"] as $showroms[$i] => $val){
# Dec 19th 2017, 13:42 helloworld_ how do I reference showroms as the keyvalues in this loop?
# Dec 19th 2017, 13:42 helloworld_ Hi, I need help with using a value of a key value of an array outside of a foreach loop.
# Dec 19th 2017, 13:30 veve I'm not 100% sure but the problem seems to be related with the php's version (7.2 in my case). On a server with Php 7.0 I don't have any error message
# Dec 19th 2017, 13:13 veve even without the count, I still get the errors
# Dec 19th 2017, 13:13 hmic just remove your anyways not implemented error case
# Dec 19th 2017, 13:12 hmic veve, count is not working as you think