Log message #4153433

# At Username Text
# Jun 22nd 2018, 15:15 lorenzo yes
# Jun 22nd 2018, 15:15 neon1024 Ah, the namespaced functions you mentioned the other day? Perfect example! Thanks @lorenzo
# Jun 22nd 2018, 14:54 lorenzo ```where(gte($field, $val))```
# Jun 22nd 2018, 14:54 lorenzo then you can do
# Jun 22nd 2018, 14:53 lorenzo ```function gte($field, $val) { return function ($exp) use ($field, $val) { return $exp->gte($field, $val); } } ```
# Jun 22nd 2018, 14:52 lorenzo I’m working on a better way, but you could have you own version today
# Jun 22nd 2018, 14:46 neon1024 Ooh, it is a bit long isn’t it
# Jun 22nd 2018, 14:44 neon1024 `where(['Example.field' => $q->func()->gte(10)])`?
# Jun 22nd 2018, 14:43 neon1024 Is there a neater way to build where clauses with greater than etc, putting the `>=` in the field selector looks horrible
# Jun 22nd 2018, 14:14 josbeir pas de probleme
# Jun 22nd 2018, 14:14 itmpls merci
# Jun 22nd 2018, 14:13 josbeir => https://book.cakephp.org/3.0/en/migrations.html#generating-migrations-from-an-existing-database
# Jun 22nd 2018, 14:13 itmpls cool
# Jun 22nd 2018, 14:13 neon1024 `bin/cake bake migration_snapshot`
# Jun 22nd 2018, 14:13 josbeir idd
# Jun 22nd 2018, 14:13 josbeir yes
# Jun 22nd 2018, 14:13 neon1024 snapshot isn’t it?
# Jun 22nd 2018, 14:13 itmpls create*
# Jun 22nd 2018, 14:12 itmpls can migrations/bake dump a migration from an existing table?
# Jun 22nd 2018, 14:08 josbeir :P
# Jun 22nd 2018, 14:08 josbeir 2-1
# Jun 22nd 2018, 14:08 tim @josbeir What do you think the score'll be? :P
# Jun 22nd 2018, 14:01 LubosR lorenzo, ok thanks ;)
# Jun 22nd 2018, 14:01 lorenzo LubosR, no composer would not allow the same pacakge name with 2 different constraints
# Jun 22nd 2018, 13:59 josbeir idd
# Jun 22nd 2018, 13:58 itmpls last 6 mins was 2 goals
# Jun 22nd 2018, 13:58 josbeir belgium tomorrow ! :flag-be: :flag-be: :flag-be:
# Jun 22nd 2018, 13:58 itmpls it was in overtime
# Jun 22nd 2018, 13:57 josbeir didn't watch the entire match
# Jun 22nd 2018, 13:57 itmpls almost didn't happen tho
# Jun 22nd 2018, 13:57 josbeir the usual :P
# Jun 22nd 2018, 13:56 itmpls brazil!! :P
# Jun 22nd 2018, 13:56 LubosR thought it is stupid question :)
# Jun 22nd 2018, 13:56 josbeir how would that work LubosR ?
# Jun 22nd 2018, 13:55 LubosR i know you told me better to use subpackage
# Jun 22nd 2018, 13:55 LubosR yep, but was thinking to require cakephp/cakephp 3.6 next to cakephp/cakephp 2.x ... that's not possible, right?
# Jun 22nd 2018, 13:55 lorenzo you just need `composer requite cakephp/orm=^3.6.0`
# Jun 22nd 2018, 13:54 lorenzo https://github.com/cakephp/orm
# Jun 22nd 2018, 13:54 lorenzo then follow the instructions here:
# Jun 22nd 2018, 13:54 LubosR Yes I do
# Jun 22nd 2018, 13:54 lorenzo do you already use composer in you cake 2 app?