Log message #4187212

# At Username Text
# May 22nd, 09:01 neon1024 Sorry @dereuromark I must have missed it!
# May 22nd, 09:00 dereuromark @neon1024 I use it to reach phpstan 7 in some plugins. but also in general as safe handler.
# May 22nd, 08:57 kieran.bowler The value is `1.10` in the database too
# May 22nd, 08:57 kieran.bowler I can't find anything in the docs
# May 22nd, 08:57 kieran.bowler Hi all, I'm having trouble getting this to render as `1.10` Here is the code `<?= $this->Form->control('price', ['type' => 'number', 'label' => ['text' => 'Price <span class="note">£</span>', 'escape' => false], 'step' => '0.10']); ?>`
# May 22nd, 08:56 dereuromark morning, I send you sth yesterday in terms of controller request handling
# May 22nd, 08:37 neon1024 Hey everyone :wave:
# May 22nd, 07:54 luisdelamo @admad right
# May 22nd, 07:39 manthan.budheliya Sorry @admad I was out of reach that day I will share things today
# May 22nd, 07:24 welo.lamacchia ahah OK :slightly_smiling_face:
# May 22nd, 07:24 admad I am not going to respond to questions relating to basic PHP :slightly_smiling_face:
# May 22nd, 07:23 welo.lamacchia it's correct?
# May 22nd, 07:23 welo.lamacchia method_exists($event->getSubject(), 'afterSave')
# May 22nd, 07:22 admad method_exists()
# May 22nd, 07:22 welo.lamacchia @admad how i can check if table has afterSave method declared ?
# May 22nd, 07:20 admad @luisdelamo From localized plugin readme: "This plugin also houses translations for the client-facing translated strings in the core (the cake domain). *to use these files link or copy them into their expected location: src/Locale/<locale>/cake.po*"
# May 22nd, 07:18 luisdelamo I try now, and for core translations should be works loading the localized Plugin?
# May 22nd, 07:17 welo.lamacchia if it has afterSave i only change the entity... if not i save the new entity
# May 22nd, 07:16 welo.lamacchia i can check in behavior if table has afterSave method
# May 22nd, 07:15 admad you'll end up with infinite loop if you are not careful about calling save() in afterSave callback
# May 22nd, 07:15 luisdelamo Thanks @admad
# May 22nd, 07:13 welo.lamacchia @admad my problem was that in behavior i call $event->getSubject()->save($entity), so the entity in Table afterSave is not new
# May 22nd, 07:09 admad @luisdelamo you can use $this->loadPlugins() in your testcase class to load required plugin
# May 22nd, 07:07 luisdelamo I try in test folder bootstrap.php use plugin::getcollection:add but not work either
# May 22nd, 07:05 luisdelamo I think is about the plugins now is in Application.php
# May 22nd, 07:04 luisdelamo When I run the unit test the the plugins translations doesn't work.
# May 22nd, 07:03 welo.lamacchia not in my case
# May 22nd, 07:03 welo.lamacchia mmmmm
# May 22nd, 06:58 admad $entity->isNew() would return the same results in both the behavior and table's afterSave()
# May 22nd, 06:40 welo.lamacchia i can't call parent::afterSave in behavior :S
# May 22nd, 06:27 welo.lamacchia ill try to do this, thanks
# May 22nd, 06:26 turkles Do you just need to call parent::afterSave() in your behaviour?
# May 22nd, 06:24 welo.lamacchia Hello everyone, i have Table attached to behavior with afterSave callback when check if entity is new i did some logics. In Table i have another afterSave callback when i check also if entity is new, but it return false because it was executed already in Behavior. How i can resolve this issue ?
# May 22nd, 06:15 turkles JS Calendar - you mean https://gramthanos.github.io/jsCalendar ? Seems its only dates, I need a time input too
# May 22nd, 04:43 admad @turkles just use a text input instead of date time selects and JS calendar
# May 22nd, 03:25 turkles Hi all, the FormHelper for DateTime - is there something quick/easy that would help me display this as a calendar picker? Or replace it?
# May 22nd, 00:30 waspinator `parent_id` needs a prefix I think
# May 22nd, 00:29 itmpls `property_id` in this case is ambiguous. prefixing it with either alias doesn't work. wut?
# May 22nd, 00:29 itmpls how can a self reference be made with conditions because of ambiguity? `$this->belongsTo('ParentBuildings', ['className' => 'Properties.Properties', 'foreignKey' . => 'ParentBuildings.property_id', 'conditions' => ['parent_id IS NULL'] ]);`
# May 22nd, 00:28 itmpls hm
# May 21st, 23:40 waspinator @luisdelamo try asking your question, and if someone can help they will