Log message #4160974

# At Username Text
# Jul 21st 2018, 09:12 hmic moin moin
# Jul 21st 2018, 09:09 birdy247 hmic morning :slightly_smiling_face:
# Jul 21st 2018, 09:04 metoyoko Testing
# Jul 21st 2018, 06:41 hmic turkels: do you know how a constructor works? Öp
# Jul 21st 2018, 04:07 turkles How do I ensure that a newEntity() always has certain properties set?
# Jul 20th 2018, 21:41 jasmun Figured it out! The app was incompatible with the php version that was running.
# Jul 20th 2018, 21:36 saliak I think i’m having the same issue as https://stackoverflow.com/questions/44518467/cakephp-3-joining-data-across-multiple-databases
# Jul 20th 2018, 21:34 saliak I want to establish a hasOne relationship between two models that use different defaultConnections. how do I specify that? currently, cake is using the defaultConnection for the main model
# Jul 20th 2018, 19:40 jasmun I'm at a loss as to how to proceed....anyone have any ideas?
# Jul 20th 2018, 19:40 jasmun I've updated the PATH, changed all the file permissions and double-checked that the file actually exists. :P
# Jul 20th 2018, 19:39 jasmun I'm trying to install a cake app on a windows machine. I've downloaded the repository (which works fine on all other machines) and I keep getting this error: Class Object not found in /lib/Cake/Controller/Controller.php
# Jul 20th 2018, 18:24 ra7bi i meant there is no clear example for beginner with plugins
# Jul 20th 2018, 18:23 ra7bi I'm having a trouble with understanding the plugin it self , for example i want to create a plugin to change something on the page
# Jul 20th 2018, 18:23 savant you can use bake to generate a plugin :)
# Jul 20th 2018, 18:23 savant ra7bi: what are you having trouble with exactly?
# Jul 20th 2018, 18:02 ra7bi is there any good course teaching me how to create cakephp 3 plugins ? i saw docs but i don't understand clearly how to get started
# Jul 20th 2018, 17:47 birdy247 Should I be using ServerRequest or Request?
# Jul 20th 2018, 15:44 birdy247 cheers
# Jul 20th 2018, 15:44 birdy247 :slightly_smiling_face:
# Jul 20th 2018, 15:44 birdy247 @neon1024 thanks! just saw that
# Jul 20th 2018, 15:42 pedroseco :slightly_smiling_face:
# Jul 20th 2018, 15:42 pedroseco thanks
# Jul 20th 2018, 15:42 pedroseco ill have to flatten those.
# Jul 20th 2018, 15:37 pedroseco as fot the views the data type aspect works great, unfortunatly I can’t seem to find a easy solution other than saving those fields on the database itself
# Jul 20th 2018, 15:36 pedroseco so I have the object saved, and after that I can / should have a OR conditions to look for various fields in there.
# Jul 20th 2018, 15:36 pedroseco not after the last query no.
# Jul 20th 2018, 15:36 lorenzo and is the table you are going to look for also dynamic? you don’t know what the field is named?
# Jul 20th 2018, 15:35 pedroseco I would prefet to ahve them as fields yes.
# Jul 20th 2018, 15:35 pedroseco because its dynamic fields form a external api
# Jul 20th 2018, 15:35 lorenzo no
# Jul 20th 2018, 15:35 pedroseco does Mysql JSON_EXTRACT works in a text column?
# Jul 20th 2018, 15:35 lorenzo but then again, why do that instead of just storing the field in the table itself?
# Jul 20th 2018, 15:34 lorenzo you may want to change the datatype of that field to an actual json column
# Jul 20th 2018, 15:34 lorenzo if you have stored it as a string (like in a varchar column, or text) then there is no way to find inside it
# Jul 20th 2018, 15:29 pedroseco Im using Data Type Json so the results already come in array format and no tin json.
# Jul 20th 2018, 15:29 pedroseco I have a json_encoded object in the database and would like to know what would be the best approuch to do a find() in the model where() a specific field on that json_object.
# 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)`