Log message #3942835

# At Username Text
# Oct 5th 2016, 16:31 francky06l Hi Bakers,
# Oct 5th 2016, 16:16 neothermic ooh, wait, does cakePHP 2.x support 5.3? My test has the new style arrays in it :S
# Oct 5th 2016, 15:17 acosonic cakenewb: its based on bootstrap
# Oct 5th 2016, 15:16 cakenewb that looks very nice indeed
# Oct 5th 2016, 15:15 cakenewb thanks acosonic and admad(/slackebot)?
# Oct 5th 2016, 15:15 acosonic https://nimbus.everhelper.me/client/notes/share/599402/bxef2xmie4u1ikn3hgc9
# Oct 5th 2016, 15:13 admad cakenewb: so do it async. select2, selectize, chosen all this js plugins have the feature to populate list async
# Oct 5th 2016, 15:13 cakenewb but the remote data seems to be doing just that!
# Oct 5th 2016, 15:13 charolastra me too. generate a simple dropdown list and then apply that JS for a nice search field
# Oct 5th 2016, 15:12 cakenewb thx acosonic, i'll check that. my main concern is performance. it would become quite slow I think whenever they have to load synchronously all addresses on each click of an order
# Oct 5th 2016, 15:11 acosonic cakenewb: I've been using this... https://select2.github.io/
# Oct 5th 2016, 15:10 cakenewb are there examples available on how to do a search help/modal dialog box to search for an existing address which might be linked to a customer, or if it doesn't, create it and jump back into the order with the right address id?
# Oct 5th 2016, 15:09 cakenewb having a select dropdown with 500 entries won't be very useful
# Oct 5th 2016, 15:09 cakenewb for the address part
# Oct 5th 2016, 15:08 cakenewb like order hasmany orderitems; order hasone address; order hasone customer; orderitems hasone product and hasone producttype
# Oct 5th 2016, 15:08 cakenewb and more complex relations etc.
# Oct 5th 2016, 15:07 cakenewb my applications had a few 100 records in all of its lifetime, now we're talking 100+ records per week
# Oct 5th 2016, 15:05 acosonic Well Neon1024, can I PM you?
# Oct 5th 2016, 15:05 Speud1 hi ;)
# Oct 5th 2016, 15:05 Speud1 yes, it's always this kind of error with timestamp
# Oct 5th 2016, 15:05 cakenewb hi
# Oct 5th 2016, 15:03 charolastra aah, your right. one of them isn't a Time object
# Oct 5th 2016, 15:01 Neon1024 Especially so if the field is nullable in the db
# Oct 5th 2016, 15:00 Neon1024 Perhaps as Speud1 said, that one item in your loop isnâ??t actually an object
# Oct 5th 2016, 15:00 Neon1024 If youâ??re outputting it in a list, ensure it has a value
# Oct 5th 2016, 15:00 Neon1024 If timestamp is a DateTime object it should be fine
# Oct 5th 2016, 15:00 Neon1024 Why?
# Oct 5th 2016, 14:54 Speud1 yes change the field name ;)
# Oct 5th 2016, 14:54 charolastra hmm, 'timestamp' is a field of the model, maby the names collide? cause it's not empty and a 'echo $question->timestamp' does print the correct date
# Oct 5th 2016, 14:52 Speud1 or wrong value (not date)
# Oct 5th 2016, 14:52 Neon1024 $question->nice() would work though
# Oct 5th 2016, 14:52 Neon1024 I would imagine that the timestamp method returns an int
# Oct 5th 2016, 14:52 Speud1 @charolastra, because one date value is empty and it cannot convert empty value
# Oct 5th 2016, 14:52 Neon1024 charolastra: Because youâ??re asking for a timestamp
# Oct 5th 2016, 14:51 charolastra speaking of time, any idea why a Time object suddently looses its objectifity when its member functions are called? e.g. echo $question->timestamp->nice() results in 'Error: Call to a member function nice() on a non-object' in views and controller.
# Oct 5th 2016, 14:49 Speud1 is it possible to use 'avg' => $query->func()->avg([array of fields]) ?
# Oct 5th 2016, 14:48 Neon1024 Haha, good plan!
# Oct 5th 2016, 14:47 hmic yeah. my personal deadline is the 19th... booked another trip to china already and the internet over there is so shitty, if at all, impossible to work from there :D - at least the excuse counts still
# Oct 5th 2016, 14:46 Neon1024 Keep at it hmic, youâ??ll get there! :)
# Oct 5th 2016, 14:45 hmic deadlines all around the corner...
# Oct 5th 2016, 14:45 hmic down spiral :-/