Log message #4160925

# At Username Text
# Jul 20th 2018, 15:28 pedroseco Hi Guys!
# Jul 20th 2018, 13:35 neon1024 Assuming you meant ‘exists’
# Jul 20th 2018, 13:35 neon1024 Yes, https://github.com/davidyell/CakePHP3-Proffer/blob/master/src/Model/Behavior/ProfferBehavior.php#L59
# Jul 20th 2018, 12:31 birdy247 Is it possible to find if a given valitor exits
# Jul 20th 2018, 12:08 neon1024 Well it’s not wrong `resource(174) of type (Unknown)`
# Jul 20th 2018, 12:05 neon1024 Which might be unrelated
# Jul 20th 2018, 12:05 neon1024 ..and a lot of this `PHP Warning: fwrite(): supplied resource is not a valid stream resource in /Users/david/Sites/TelecomsCCA/vendor/cakephp/cakephp/src/Console/ConsoleOutput.php on line 253`
# Jul 20th 2018, 12:04 neon1024 Just with a trace and sql errors
# Jul 20th 2018, 12:04 neon1024 Currently it spaffs out a HUGE Wall-O-Text
# Jul 20th 2018, 12:04 neon1024 I think there could be some improvements made to when Migrations fail to run
# Jul 20th 2018, 11:30 lubos @admad thanks for another great plugin, works like a charm
# Jul 20th 2018, 11:27 josbeir very nice ux
# Jul 20th 2018, 11:27 josbeir @neon1024 that tool is actually very good imo
# Jul 20th 2018, 11:20 admad @lubos yes using muffin/orderly
# Jul 20th 2018, 11:20 neon1024 Great thanks, I will try and remember that one if I refactor :slightly_smiling_face:
# Jul 20th 2018, 11:19 admad @neon1024 if you want 2.x style default ordering for a table there's my Orderly plugin :)
# Jul 20th 2018, 11:16 josbeir bookmarked
# Jul 20th 2018, 11:16 josbeir hey that looks nice
# Jul 20th 2018, 11:12 neon1024 @josbeir RE: Database design tools. I was curious and had a search to see if an application was event needed. It seems not. https://app.sqldbm.com/MySQL/Draft/
# Jul 20th 2018, 10:51 neon1024 Or if you’re using an association, don’t forget you can define the sort in the association as well
# Jul 20th 2018, 10:50 neon1024 Or as @dereuromark suggests. Add a field to your Table class and process it with a behaviour which hooks queries and appends the sorting
# Jul 20th 2018, 10:49 neon1024 @lubos This is how I’ve tackled it. Not very clean, but it works. I’m sure you can adapt the technique to suit your use-case
# Jul 20th 2018, 10:48 neon1024 File uploaded https://cakesf.slack.com/files/U1BT622HW/FBU6U8G5T/default_ordering_using_crud.sh / https://slack-files.com/T053DPNCM-FBU6U8G5T-8efb7797da
# Jul 20th 2018, 10:48 hmic sorry, beforeFind
# Jul 20th 2018, 10:46 lubos hmic, you said in a beforeFilter call back, that's the controller callback or am I wrong? :slightly_smiling_face:
# Jul 20th 2018, 10:45 asdfgh :D
# Jul 20th 2018, 10:45 asdfgh neon1024 too long
# Jul 20th 2018, 10:44 neon1024 Just curious asdfgh, why not jkl as well?
# Jul 20th 2018, 10:43 hmic asdfgh: return response withBody from the action
# Jul 20th 2018, 10:42 hmic lubos: i have not been talking about the controller. both go into zour table
# Jul 20th 2018, 10:42 asdfgh guys how can i reply with a string instead creating aview?
# Jul 20th 2018, 10:29 dereuromark successor, yes
# Jul 20th 2018, 10:28 birdy247 Are Consoles now in favour over Shells
# Jul 20th 2018, 10:27 lubos hmic: thanks, wanted to not touch controller at all (using CRUD) and wanted to set it up in model, something like setDisplayField, setOrder :slightly_smiling_face: ... I could overwrite all finder, but thought there is better way
# Jul 20th 2018, 10:25 hmic lubos: yes. in a beforeFilter callback, or by overwriting the find() method
# Jul 20th 2018, 10:24 lubos I mean in Table
# Jul 20th 2018, 10:24 lubos Is it possible to set default order in the model?
# Jul 20th 2018, 10:14 josbeir browsing, manipulating over ssh is just quicker
# Jul 20th 2018, 10:13 josbeir imo, when designing the db then workbench is probably the better bet, but for day 2 day use i think sqlpro will be more productive
# Jul 20th 2018, 10:13 neon1024 I just like MySQL Workbenches ERD diagram builder for helping design a db. Plus I like that I can forward engineer that into an actual db
# Jul 20th 2018, 10:12 neon1024 To be fair, the beta build of Sequel Pro can do that, but the build also introduces some other bugs