Log message #4115945

# At Username Text
# Feb 9th 2018, 12:05 neon1024 Agreed, Vue.js does make jQuery seem a bit retarded
# Feb 9th 2018, 12:04 admad vuejs is great when you need just some sprinkling of js in your app/site
# Feb 9th 2018, 12:04 jotpe hey folks. In Cake2x, is there a possibility to set a conditions wildcard? E.g. I have a method with a param (Id's). When the param is passed the Id's should be used as find condition. If the param is not given, it should retrieve all
# Feb 9th 2018, 12:00 birdy247 Loving vue.js with inline templates and cake :slightly_smiling_face:
# Feb 9th 2018, 11:48 birdy247 works
# Feb 9th 2018, 11:48 birdy247 return Date::createFromFormat('d/m/Y', $occasion->date->format('d/m/Y'));
# Feb 9th 2018, 11:46 birdy247 I could just createFromFormat
# Feb 9th 2018, 11:46 birdy247 I was hoping to set it to midnight
# Feb 9th 2018, 11:46 hmic the interfaces are compatibe, it's just about formatting
# Feb 9th 2018, 11:45 birdy247 I am doing a lazy load in the price entity
# Feb 9th 2018, 11:45 birdy247 but the event date is a datetime
# Feb 9th 2018, 11:45 birdy247 I want to return the event->date
# Feb 9th 2018, 11:45 birdy247 if a price has an "effective_from" date of null
# Feb 9th 2018, 11:45 loginews @hmic(IRC) trying to look up an example in the docs for that.
# Feb 9th 2018, 11:45 birdy247 A event has many prices
# Feb 9th 2018, 11:45 birdy247 Bit of a long story
# Feb 9th 2018, 11:44 hmic birdy247: whats the usecase? the classes are pretty much the same, apart from formatting
# Feb 9th 2018, 11:44 loginews @birdy247 php function date("Ymd",strtotime(date))
# Feb 9th 2018, 11:43 hmic loginnews: use the entity to set it, maybe?
# Feb 9th 2018, 11:42 birdy247 Is there an easy way to get a datetime and convert it to a date
# Feb 9th 2018, 11:35 dereuromark patching is the validation, you just dont save afterwards if it doesnt work out as you want it to.
# Feb 9th 2018, 11:28 loginews In a table T there are fields X Y and Z. I want Z to be saved as equal to X+Y whenever I edit the record. I am reading https://book.cakephp.org/3.0/en/orm/saving-data.html but I am lost.
# Feb 9th 2018, 11:26 amit I want to validate before patch entity
# Feb 9th 2018, 11:13 neon1024 Just seems odd to show a foreach example
# Feb 9th 2018, 11:13 neon1024 I guess perhaps it’s already covered here, https://book.cakephp.org/3.0/en/orm/saving-data.html#saving-multiple-entities
# Feb 9th 2018, 11:12 neon1024 Does anyone else agree this docs section could be updated to mention calling `saveMany()` ? https://book.cakephp.org/3.0/en/orm/saving-data.html#converting-multiple-records
# Feb 9th 2018, 11:11 hmic amit: patchEntity does
# Feb 9th 2018, 11:10 amit can we validate the data before patch entity ?
# Feb 9th 2018, 11:10 amit Hi A;;
# Feb 9th 2018, 11:02 dereuromark also saves me a lot of typing :slightly_smiling_face:
# Feb 9th 2018, 11:02 neon1024 @dereuromark Thanks for your work on the IdeHelper plugin, it’s very helpful. I really like the auto-complete for Plugin models when using `loadModel()`
# Feb 9th 2018, 10:44 neon1024 Morning everyone
# Feb 9th 2018, 10:22 dereuromark you always have put them into e.g. Lib/ folder, in 3.x. you can use any namespace you want.
# Feb 9th 2018, 10:22 dereuromark you never put your common functions in vendor :slightly_smiling_face: only if they are a standalone package
# Feb 9th 2018, 10:16 unclezoot morning, im having a brain fart - in the old days, you put your own common functions in the /vendor folder - where should you put them now? I'm talking about common generic functions you want to use in your projects
# Feb 9th 2018, 10:11 javier_rodri1989 sorry for my inglish
# Feb 9th 2018, 10:11 javier_rodri1989 Good morning, I have an error, I'm working on ajax and it gives me error that it requires the template that doesn't find it but I don't have to say that since it's ajax... how can I do it? thanksgiving
# Feb 9th 2018, 10:00 loginews great. thanks. I will try that. But can I sort of execute that afterr the user enters the name and the date, since this is how I build up FILENUM... ?
# Feb 9th 2018, 09:58 k4t try: $this->Form->input('FILENUM',array( 'label' => 'Pt No.', 'value' => $yourValue));
# Feb 9th 2018, 09:57 loginews How do I populate FILENUM with a value I calculate ?
# Feb 9th 2018, 09:56 loginews File uploaded https://cakesf.slack.com/files/U435V89H8/F9616BDSM/-.txt / https://slack-files.com/T053DPNCM-F9616BDSM-b460a77c5d