Logs for #cakephp

Page 1 of 35,848, showing 100 records out of 3,584,792 total, starting on record 1, ending on 100

# At Username Text
# Today, 08:23 birdy247 Its a bit of a beast
# Today, 08:22 birdy247 File uploaded https://cakesf.slack.com/files/U0T295QA3/FBCQYBYCS/-.php / https://slack-files.com/T053DPNCM-FBCQYBYCS-cb0fdf75c1
# Today, 08:22 birdy247 Here is the method
# Today, 08:21 birdy247 Presumably I need to stub these?
# Today, 08:21 birdy247 One of my methods inside this class does a couple of lookups to cake models
# Today, 08:20 birdy247 I am trying to unit test it
# Today, 08:20 birdy247 I have made a custom class to handle "Invoices"
# Today, 08:04 birdy247 Morning
# Today, 03:58 admad Welcome :slightly_smiling_face:
# Today, 03:54 c Also @admad now that I’m here thank you for that plugin I use it a lot!
# Today, 03:51 c Wow! Thanks :-)
# Today, 03:49 admad Don't sell yourself short. Your English is good enough :slightly_smiling_face:
# Today, 03:47 c And sorry for my english, it’s not my first language ,:)
# Today, 03:47 c NIce!! Thank you very much @admad
# Today, 03:45 admad @c https://github.com/cakephp/cakephp/pull/12242
# Today, 03:42 c Thanks!
# Today, 03:42 admad :+1:
# Today, 03:42 c Oh! great thanks @admad I searched for a issue on the github repo and couldn’t find one related
# Today, 03:41 c Yep I did that :)
# Today, 03:41 admad It's a bug in core which will be fixed in next release
# Today, 03:40 admad @c just remove the addPlugin() call from Application:: bootstrap ()
# Today, 03:38 c If I remove that line and add the plugin loading on the `boostrap.php` file everything works, is it a bug?
# Today, 03:37 c File uploaded https://cakesf.slack.com/files/UB6G053A6/FBCHB1FU4/-.js / https://slack-files.com/T053DPNCM-FBCHB1FU4-69254ac14a
# Today, 03:37 c My dependencies are these:
# Today, 03:36 c Apparently it is expecting the `ADmad\JwtAuth\Plugin` namespace
# Today, 03:36 c File uploaded https://cakesf.slack.com/files/UB6G053A6/FBCPWTNLS/screenshot_2018-06-22_screenshot.png / https://slack-files.com/T053DPNCM-FBCPWTNLS-8f8a019d5d
# Today, 03:35 c An it gives me this error
# Today, 03:34 c File uploaded https://cakesf.slack.com/files/UB6G053A6/FBCLYC6RH/-.php / https://slack-files.com/T053DPNCM-FBCLYC6RH-1db8790ec6
# Today, 03:34 c If I run this command `bin/cake plugin load ADmad/JwtAuth` it adds this line on the Application.php file
# Today, 03:33 c I’m having a problem with the bake console and the plugin loading
# Today, 03:33 c Hello everyone!
# Yesterday, 23:34 ra7bi is that possible with that plugin ? thanks
# Yesterday, 23:33 ra7bi File uploaded https://cakesf.slack.com/files/U1M5X5JBZ/FBDKYEH7G/helpresource.ashx.png / https://slack-files.com/T053DPNCM-FBDKYEH7G-eb57eb5e7d - i need it something like this , two inputs with labels in each line
# Yesterday, 23:32 ra7bi File uploaded https://cakesf.slack.com/files/U1M5X5JBZ/FBDQ5TBBR/screen_shot_2018-06-23_at_3.31.29_am.png / https://slack-files.com/T053DPNCM-FBDQ5TBBR-21bcd605b9 - i've installed <https://github.com/FriendsOfCake/bootstrap-ui> plugin and i followed the steps , i want to make 2 inputs with label in each line but it gives me only one im using horizontal setup
# Yesterday, 21:56 ra7bi thanks , i got the problem PK was not AI
# Yesterday, 21:54 ra7bi when i do bake --everything it does not work but if i do it one by one it works
# Yesterday, 21:53 saeideng `$this->setPrimaryKey('id');`
# Yesterday, 21:53 itmpls double check
# Yesterday, 21:53 itmpls you sure it's the right table?
# Yesterday, 21:52 ra7bi i've primary key for details table
# Yesterday, 21:52 ra7bi i got an error with bake ` Wrote `/Applications/AMPPS/www/store/src/Template/Details/edit.ctp` Cannot generate views for models with no primary key `
# Yesterday, 21:52 ra7bi hi
# Yesterday, 18:16 elovin ah okay, thanks
# Yesterday, 18:13 lorenzo Classes are need only when you want to customize stuff
# Yesterday, 18:13 lorenzo It will use the base table class by default
# Yesterday, 18:09 elovin another question though, as it seems I do not need any table classes to access existing Tables with the TableLocator ?
# Yesterday, 18:08 elovin okay mybad, missed a simple error in my cache config
# Yesterday, 18:00 elovin I tried that, same result, connection is refused, might be an error in my docker-compose
# Yesterday, 17:57 lorenzo What if you use the same port in cake as you did directly in pdo?
# Yesterday, 17:46 elovin any ideas ?
# Yesterday, 17:45 elovin well yes, but I have a different problem right now, I get SQLSTATE[HY000] [2002] Connection refused when using the stand alone app but the regular cakePHP app works just fine with the same database config, also using PDO directly strangely only works with 8889 but im on linux + docker ..
# Yesterday, 17:30 lorenzo elovin still need help with that?
# Yesterday, 16:26 elovin can I just copy the database model folder from my other cakePHP project to the stand alone project where I use the cakePHP orm ? If so, where should I place it ?
# Yesterday, 16:25 elovin Im trying to use only the ORM from CakePHP, I have set the database Configuration and meta data cache, but now I'm wondering where to place the table and entity classes ?
# Yesterday, 15:22 lorenzo right
# Yesterday, 15:19 neon1024 I guess that the `where()` method passes it if the param is a callable?
# Yesterday, 15:17 neon1024 I don’t quite follow the execution path though. Where does `$exp` get set in the callback method?
# Yesterday, 15:15 lorenzo yes
# Yesterday, 15:15 neon1024 Ah, the namespaced functions you mentioned the other day? Perfect example! Thanks @lorenzo
# Yesterday, 14:54 lorenzo ```where(gte($field, $val))```
# Yesterday, 14:54 lorenzo then you can do
# Yesterday, 14:53 lorenzo ```function gte($field, $val) { return function ($exp) use ($field, $val) { return $exp->gte($field, $val); } } ```
# Yesterday, 14:52 lorenzo I’m working on a better way, but you could have you own version today
# Yesterday, 14:46 neon1024 Ooh, it is a bit long isn’t it
# Yesterday, 14:44 neon1024 `where(['Example.field' => $q->func()->gte(10)])`?
# Yesterday, 14:43 neon1024 Is there a neater way to build where clauses with greater than etc, putting the `>=` in the field selector looks horrible
# Yesterday, 14:14 josbeir pas de probleme
# Yesterday, 14:14 itmpls merci
# Yesterday, 14:13 josbeir => https://book.cakephp.org/3.0/en/migrations.html#generating-migrations-from-an-existing-database
# Yesterday, 14:13 itmpls cool
# Yesterday, 14:13 neon1024 `bin/cake bake migration_snapshot`
# Yesterday, 14:13 josbeir idd
# Yesterday, 14:13 neon1024 snapshot isn’t it?
# Yesterday, 14:13 josbeir yes
# Yesterday, 14:13 itmpls create*
# Yesterday, 14:12 itmpls can migrations/bake dump a migration from an existing table?
# Yesterday, 14:08 josbeir :P
# Yesterday, 14:08 josbeir 2-1
# Yesterday, 14:08 tim @josbeir What do you think the score'll be? :P
# Yesterday, 14:01 LubosR lorenzo, ok thanks ;)
# Yesterday, 14:01 lorenzo LubosR, no composer would not allow the same pacakge name with 2 different constraints
# Yesterday, 13:59 josbeir idd
# Yesterday, 13:58 itmpls last 6 mins was 2 goals
# Yesterday, 13:58 josbeir belgium tomorrow ! :flag-be: :flag-be: :flag-be:
# Yesterday, 13:58 itmpls it was in overtime
# Yesterday, 13:57 josbeir didn't watch the entire match
# Yesterday, 13:57 itmpls almost didn't happen tho
# Yesterday, 13:57 josbeir the usual :P
# Yesterday, 13:56 itmpls brazil!! :P
# Yesterday, 13:56 LubosR thought it is stupid question :)
# Yesterday, 13:56 josbeir how would that work LubosR ?
# Yesterday, 13:55 LubosR i know you told me better to use subpackage
# Yesterday, 13:55 LubosR yep, but was thinking to require cakephp/cakephp 3.6 next to cakephp/cakephp 2.x ... that's not possible, right?
# Yesterday, 13:55 lorenzo you just need `composer requite cakephp/orm=^3.6.0`
# Yesterday, 13:54 lorenzo https://github.com/cakephp/orm
# Yesterday, 13:54 lorenzo then follow the instructions here:
# Yesterday, 13:54 LubosR Yes I do
# Yesterday, 13:54 lorenzo do you already use composer in you cake 2 app?
# Yesterday, 13:54 LubosR "<lorenzo> it is possible, yes" I would give this a try... any hint? :)
# Yesterday, 13:53 lorenzo open a ticket if it is not