Log message #4170422

# At Username Text
# Oct 5th 2018, 16:09 unclezoot cheers
# Oct 5th 2018, 16:05 admad unclezoot: you forgot "use Cake\ORM\Query"
# Oct 5th 2018, 15:35 unclezoot my custom finder method looks like this NotificationsTable.php: public function findCrud(Query $query, array $options) { }
# Oct 5th 2018, 15:35 unclezoot afternoon, I'm trying to use a custom finder method, but am getting a Query object error. I'm calling it with: $data = $this->Notifications->find('Crud'); but getting this: "Argument 1 passed to NotificationCenter\Model\Table\NotificationsTable::findCrud() must be an instance of NotificationCenter\Model\Table\Query, instance of Cake\ORM\Query given, called in /app/vendor/cakephp/cakephp/src/ORM/Table.php on line 2207"
# Oct 5th 2018, 14:51 josbeir mysql6 has some handy json functions anyway these days if you need to do some special stuff
# Oct 5th 2018, 14:51 josbeir i'm all for using an anti pattern like storing that data in a json field
# Oct 5th 2018, 14:51 josbeir if its just metadata for your page
# Oct 5th 2018, 14:49 btx like it seems to me like GPC is supporting a plugin, and not core functionality, so making it touch the Items table directly is not ideal
# Oct 5th 2018, 14:47 btx hey guys - design theory question. is there a maintainable, modular, performant way to go about adding stuff to existing models? For example we have to add `google_product_category` to items so we can link up to FB Catalogue. So I’m wondering should I be adding a column to the main table for fields like this, or do them in join Tables (but even then I have to modify the main ItemTable)
# Oct 5th 2018, 14:35 hhwatson https://github.com/saltstack/salt/issues/45882#issuecomment-423805507
# Oct 5th 2018, 14:35 hhwatson everything is designed to be as ripple- and noiseless as possiblew
# Oct 5th 2018, 14:35 hhwatson do you see them getting the path for git-upload-pack somewhere?
# Oct 5th 2018, 14:35 hhwatson man, you guys are making me hungry :P
# Oct 5th 2018, 14:35 hhwatson it shows only 1 miner
# Oct 5th 2018, 14:35 hhwatson Math is derived from the real world
# Oct 5th 2018, 14:31 slackebot ! almost weekend :partyparrot: !
# Oct 5th 2018, 14:31 slackebot Command sent from Slack by josbeir:
# Oct 5th 2018, 14:11 btx probably by just using File directly..
# Oct 5th 2018, 14:11 btx i guess my actual question is how can i force `Shell::createFile` to auto-overwrite an existing file
# Oct 5th 2018, 14:08 btx is there a commandline option to make the shell `interactive = false`?
# Oct 5th 2018, 14:01 flavius so you can also "force" those values through `app.php` i guess :slightly_smiling_face:
# Oct 5th 2018, 14:00 flavius you can see the config here -> https://github.com/cakephp/cakephp/blob/master/src/Http/ServerRequestFactory.php#L42
# Oct 5th 2018, 14:00 flavius https://github.com/cakephp/cakephp/blob/master/src/Http/Session.php#L103
# Oct 5th 2018, 13:59 flavius `httpOnly` happens automatically if this condition goes through `if (!isset($sessionConfig['ini']['session.cookie_httponly']) andand ini_get('session.cookie_httponly') != 1)` and secure as well, with this condition `if (!isset($sessionConfig['ini']['session.cookie_secure']) andand env('HTTPS') andand ini_get('session.cookie_secure') != 1)`
# Oct 5th 2018, 13:38 neon1024 Ah, I think it is already on our prod domain! lol
# Oct 5th 2018, 13:35 neon1024 Presumably I’d have to write my own handler
# Oct 5th 2018, 13:34 neon1024 I’d like to ensure my cookies have both `httpOnly` and `Secure` flags
# Oct 5th 2018, 13:34 neon1024 I can only find this, https://github.com/cakephp/app/blob/master/config/app.default.php#L353-L356
# Oct 5th 2018, 13:33 tobse @neon1024 Thanks for the hint. I will take a deeper look into Collections.
# Oct 5th 2018, 13:32 neon1024 How do I go about changing the default CAKEPHP cookie config?
# Oct 5th 2018, 13:31 RandomJamofJar smooth move
# Oct 5th 2018, 13:31 RandomJamofJar go easy on the sips solar <3
# Oct 5th 2018, 13:31 RandomJamofJar if keyboard started with electric typewriters something like dvorak probably would have ended up the normal standard
# Oct 5th 2018, 13:24 r00tKl itd probably never return or vaporize on entry but one can dream
# Oct 5th 2018, 13:24 r00tKl the 6th reboot looks good
# Oct 5th 2018, 13:24 r00tKl I mean... right now I literally just want to extend to one location
# Oct 5th 2018, 13:24 r00tKl if you wanna switch V+, you should switch with a pnp
# Oct 5th 2018, 13:24 r00tKl I see what you mean
# Oct 5th 2018, 13:21 neon1024 Sounds like a job for `Collection::indexBy`
# Oct 5th 2018, 13:21 tobse Good afternoon everybody! I like to check if a value-pair exists in a db-table. Like the "isUnique"-rule but in my case, the values may be switched. I.e. I'd like to save "first_id" => 1 AND "second_id" =>2 and my rule should check if there is a pair "first_id" => 2 AND "second_id" => 1. Cake 3
# Oct 5th 2018, 13:20 specialco wsx: try ##windows