Log message #4108604

# At Username Text
# Jan 12th 2018, 14:27 jota Anyone knows how to add a document root path... I was working on the path.php file, but it does not work :(
# Jan 12th 2018, 14:26 dereuromark leon: Query on the pivot table, or manually join to do such a combined single query. You can also look into geo plugin for resusing existing "geo query" functionality to keep things DRY.
# Jan 12th 2018, 14:26 jota hi guys
# Jan 12th 2018, 14:00 hmic leon: you are talking about a hasMany, not belongsToMany, do you? - as in a belongsToMany you have a pivot table which does noth have the info you are after, so your query does not work (this way). take a look at the quries generated and you will notice it's not a single query with the belongsToMany
# Jan 12th 2018, 13:43 slackebot ]); $query->contain([‘Zips’]); the following error appears Column not found: 1054 Unknown column and#039;Zips.latitudeand#039; in and#039;field listand#039;
# Jan 12th 2018, 13:43 leon Hello all. I habe a belongsToMany Relation (Areas belonsToMany Zips). Now i want to get the average of Zips.latitude and Zips.longitude and set it to Areas.center_latitude and Areas.center.longitude in the result set. Is there a good way to to it directly with a query? with $query->select([ ‘center_latitude’ => $query->func()->avg(‘Zips.latitude’), ‘center_longitude’ => $query->func()->avg(‘Zips.l
# Jan 12th 2018, 13:09 obinoob admad thank you ;) I have made all sorts of stupid things even 'value' => (function() use ($proposal)) { return $proposal->delivery ?? date('mm-dd-Y') })()
# Jan 12th 2018, 13:03 admad if you want to populate the input with a default value then use "default" option for Form->control()
# Jan 12th 2018, 13:01 obinoob admad that would be the case after submit :) I thought about beforeRender but not entirely sure...
# Jan 12th 2018, 13:00 admad obinoob: use beforeMarshal callback in table
# Jan 12th 2018, 12:54 obinoob Hello, where can I set default value for an entity property? This is what I'm doing it works but not nice... add() { if(empty($proposal->delivery)) { $proposal->delivery = date('dd-mm-Y'); } }
# Jan 12th 2018, 12:27 willem how do i do this? this is the part i get stuck? maybe it is a simple call, but i am thinking to difficult prob. got a code example for me?
# Jan 12th 2018, 12:21 hmic afterwards should be self explanatoriy, 2s complement it by xor and add 1, sprintf to your hex representation
# Jan 12th 2018, 12:21 hmic willem: i'd convert your string to a number first
# Jan 12th 2018, 12:12 willem does anybody know how to calculate the 2s complement of a hex value using PHP? For example: ``` The two's complement of E2 is 1E ```
# Jan 12th 2018, 11:27 technofection I want to set regular expression for the URL parameters... What is the syntax?
# Jan 12th 2018, 11:26 technofection 'map' => [ '/search/:page/:records/*' => [ 'action' => 'index', 'method' => 'GET' ], .... ....
# Jan 12th 2018, 11:26 technofection Hi, I am trying to create a resource map like this
# Jan 12th 2018, 10:53 neon1024 I’ve not done any BDD though :slightly_smiling_face:
# Jan 12th 2018, 10:47 neon1024 https://github.com/cucumber/cucumber
# Jan 12th 2018, 10:46 neon1024 Ah perhaps Gherkin is the test language
# Jan 12th 2018, 10:46 neon1024 Behat is a BDD thing I think too
# Jan 12th 2018, 10:45 neon1024 @makallio85 I only know of Gherkin I think it’s called, and PHP Spec?
# Jan 12th 2018, 10:44 jotpe @dereuromark or should i write an sh script and call it from composers post-install-cmd?
# Jan 12th 2018, 10:42 jotpe and: is there any recommendation for a frontend package manager? Bower seems to be dead. Which fe pm's are other Cakeprojects use?
# Jan 12th 2018, 10:41 jotpe Would be handy to have something to call from a cli, or not?
# Jan 12th 2018, 10:40 dereuromark Jotpe: I just have an sh script that does all that on deploy :slightly_smiling_face:
# Jan 12th 2018, 10:20 makallio85 What BDD testing framework would you suggest to use with cake? I am just starting to get into BDD and wondering if there are any with good cake support.
# Jan 12th 2018, 10:14 jotpe e.g. I want to install bs4 assets automatically (https://github.com/FriendsOfCake/bootstrap-ui/issues/193) and copy some files to webroot
# Jan 12th 2018, 10:12 jotpe Hey folks. When I want to simplify the process of installing external assets/frameworks, what would be a good way? Create a Shell Task and call bower from it? Use Composer (not every dependency can be solved with composer)?
# Jan 12th 2018, 08:57 digitalfotografen OK - I´ll export a new pot before translation
# Jan 12th 2018, 08:51 dereuromark @digitalfotografen The pot file might be outdated as well.
# Jan 12th 2018, 08:31 neon1024 Morning all
# Jan 12th 2018, 08:15 digitalfotografen @dereuromark Your feedback plugin looks awesome! Looks like an interesting way to get more and better feedback from user. I'll commit a Swedish translation within a few days. Great work!
# Jan 12th 2018, 01:53 blackjccl https://github.com/dereuromark/cakephp-tinyauth
# Jan 12th 2018, 01:53 blackjccl yes for what I see if, but I want examples of it, they even passed me a plugin this here
# Jan 12th 2018, 01:27 dereuromark Most used prefix sure is "admin" :)
# Jan 11th 2018, 22:59 blackjccl thank you, that I happen to be the first time I'm going to use you have some example or tutorial
# Jan 11th 2018, 22:49 josexato @blackjccl what about them, prefix are very usefull
# Jan 11th 2018, 22:47 josexato it rings a bell :slightly_smiling_face:
# Jan 11th 2018, 22:39 blackjccl someone around here has ever used the prefix routers