Log message #4104779

# At Username Text
# 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
# Dec 19th 2017, 13:11 veve Does it says something to someone ?
# Dec 19th 2017, 13:10 veve Hello, I have something very strange. I'm developping a shell in CakePhp 3. In this shell I need to get the last record of a table according to the table's ID. I got it but I get many many error messages before it. My code is here: https://pastebin.com/kEJwDvWJ
# Dec 19th 2017, 13:10 ksandeep_ now how to format data, Not found any example on it for 3.x
# Dec 19th 2017, 13:09 ksandeep_ like a users can have multiple addresses, and while adding user, user can add multiple address with add more option
# Dec 19th 2017, 13:08 ksandeep_ Hi frnds, What is best way to add relation table data with add more option. Every time send request on server and built Html or use sample data and make required update
# Dec 19th 2017, 12:51 dereuromark Please check your ticket
# Dec 19th 2017, 12:32 dereuromark hehe
# Dec 19th 2017, 12:29 neon1024 Our office closes on Friday for the holiday break
# Dec 19th 2017, 12:29 dereuromark retiring?
# Dec 19th 2017, 12:28 neon1024 My first real stab at trying PHP Stan as it’s the last week of work :slightly_smiling_face:
# Dec 19th 2017, 12:26 neon1024 Oh right, thanks!
# Dec 19th 2017, 12:25 dereuromark too bad the core only supports two types yet
# Dec 19th 2017, 12:25 dereuromark it does ;) if you provide it directly on the flash component as I do: https://github.com/dereuromark/cakephp-flash/blob/master/src/Controller/Component/FlashComponent.php
# Dec 19th 2017, 12:24 neon1024 This doesn’t seem to cut it `* @method \Cake\Controller\Component\FlashComponent warning($name, $args)`
# Dec 19th 2017, 12:23 neon1024 I’m struggling to Google for info on the docblocks to use
# Dec 19th 2017, 12:22 dereuromark it does if you teach it :slightly_smiling_face: We have a lot of those at spryker: https://github.com/spryker/demoshop/tree/master/tests/PhpStan/DynamicType
# Dec 19th 2017, 12:22 admad any static analyzer if going to have trouble with dynamic stuff :slightly_smiling_face:
# Dec 19th 2017, 12:21 neon1024 PHP Stan doesn’t like magic methods :)
# Dec 19th 2017, 12:02 neon1024 Wahoo! My code passed level 1 of PHP Stan :slightly_smiling_face: `[OK] No errors`
# Dec 19th 2017, 11:59 joop i get "ModelName" is not associated with tests
# Dec 19th 2017, 11:59 joop if i try like: $userId = $this->_tests->get('id');
# Dec 19th 2017, 11:58 admad absolutely
# Dec 19th 2017, 11:58 neon1024 I should edit my post!
# Dec 19th 2017, 11:58 neon1024 :)
# Dec 19th 2017, 11:58 admad That why i added the paginator class to avoid having to use hacks :slightly_smiling_face:
# Dec 19th 2017, 11:57 neon1024 Well you can, but it’s hacky. http://jedistirfry.co.uk/blog/2016-11/pagination-inside-a-view-cell/