Log message #4201981

# At Username Text
# Sep 6th 2019, 09:31 david098 Thanks for pushing me in the right direction
# Sep 6th 2019, 09:31 david098 For the onces who have looked into my issue yesterday, i created a working solution; https://stackoverflow.com/questions/57807225/
# Sep 6th 2019, 09:12 racmiroslav thank you for advice
# Sep 6th 2019, 09:04 alexdd55976 except `number` is the primary key of the table
# Sep 6th 2019, 09:04 neon1024 @racmiroslav https://github.com/ADmad/cakephp-sequence
# Sep 6th 2019, 09:03 alexdd55976 yes, you can do that. did that before too
# Sep 6th 2019, 09:02 racmiroslav @alexdd55976 I mean to save entity with `$this->Documents->save($doc)`
# Sep 6th 2019, 09:01 alexdd55976 $this->find()->select(['MAX(number)])->where(['scope' => 'stuff'])
# Sep 6th 2019, 09:01 racmiroslav or… when I run this subquery in beforeSave within transaction, will it satisfy concurrency issues?
# Sep 6th 2019, 08:59 racmiroslav Hey folks. What are your suggestions to implement number series for table row property? I need to increment value on insert. is it possible with ORM? something like ```$doc = new Document(); $doc->number = $query->newExpr('SELECT MAX(number) FROM Documents WHERE scope = xy')```
# Sep 6th 2019, 08:59 peppejaripappalardo thx to @neon1024 and @alexdd55976 i will tru extractOriginalChanged
# Sep 6th 2019, 08:58 alexdd55976 `$changed = $entity->extractOriginalChanged($entity->visibleProperties());`
# Sep 6th 2019, 08:58 peppejaripappalardo this is what i do: if ($entity->actor->incident_type_group->description != $entity->actor->incident_type_group->getOriginal(‘description’)) { $modified_fields[] = [‘was’ => $entity->actor->incident_type_group->getOriginal(‘description’), ‘is_now’ => $entity->actor->incident_type_group->description, ‘field_name’ => ‘description’]; }
# Sep 6th 2019, 08:57 neon1024 As what you’re doing is what this function does for you
# Sep 6th 2019, 08:57 neon1024 Did you check `$entity->isDirty($propertyName)`
# Sep 6th 2019, 08:57 neon1024 Perhaps they haven’t changed
# Sep 6th 2019, 08:56 peppejaripappalardo Hello guys, a little help please. i am using $entity->getOrigina(property), and i check the diff with entity->property, but how is possible that the getOriginal(property) return the same of the $entity->property? i premise that i made a changes into the database of the property that i trying to check the old result
# Sep 6th 2019, 08:55 alexdd55976 not so happy for people who are working on yii unittests and sh*t does not work :(
# Sep 6th 2019, 08:47 dereuromark I found a php5 fix after all
# Sep 6th 2019, 08:38 neon1024 Hey everyone. Happy Friday :tada:
# Sep 6th 2019, 06:02 alexdd55976 morning
# Sep 6th 2019, 05:50 conehead morning
# Sep 6th 2019, 05:36 javier.villanueva morning all
# Sep 6th 2019, 02:31 Fastidius @slackebot, cheers found it, used Rows and Cols but right formats
# Sep 6th 2019, 01:59 jimbo2150 You should be able to do a `$this->Form->control('reminder_title', ['size' => 200]);` or `$this->Form->control('reminder_title', ['class' => 'reminder_title');` and use the "reminder_title" class in a stylesheet to control width.
# Sep 6th 2019, 00:51 Fastidius anywhere specific in php cookbook i can read on this stuff
# Sep 6th 2019, 00:46 Fasti how do i make the control textbox the right size (200)
# Sep 6th 2019, 00:46 Fasti </div>
# Sep 6th 2019, 00:46 Fasti <?php echo $this->Form->control('reminder_title'); ?>
# Sep 6th 2019, 00:46 Fasti ok this one is a cake thing, <div class="col-xs-5">
# Sep 6th 2019, 00:32 Fasti yep nevermind. someone did a hack way of asking for a password.
# Sep 6th 2019, 00:28 Fasti looks like JS to me just checking
# Sep 6th 2019, 00:28 Fasti is this a cake thing or JS?
# Sep 6th 2019, 00:28 Fasti var key = prompt("Please enter the decryption key:");
# Sep 5th 2019, 21:32 challgren Bah I saw an example a while ago and I cant find it
# Sep 5th 2019, 21:31 dereuromark without like tons of manual code?
# Sep 5th 2019, 21:31 dereuromark jep, is there any better way of sorting those strings?
# Sep 5th 2019, 21:28 challgren Looks like the cause
# Sep 5th 2019, 21:28 challgren https://stackoverflow.com/a/44542683/4397272
# Sep 5th 2019, 21:27 dereuromark but in php5 the order of going in is reversed, messing this up.
# Sep 5th 2019, 21:27 dereuromark @ricksaccous the idea was to only switch order for mapped items, the others should stay as they are